-
-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathconfig.yml
More file actions
34 lines (32 loc) · 823 Bytes
/
config.yml
File metadata and controls
34 lines (32 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: 2.1
orbs:
slack: circleci/slack@4.9.3
jobs:
publish:
docker:
- image: oryd/sdk:latest
working_directory: /sdk
steps:
- checkout
- run: |
if [ -z "$(git log -1 --pretty=%B | grep 'Add spec for' | grep -v '.pre.')" ]; then
circleci-agent step halt
fi
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- run: ./scripts/init.sh
- run: ./scripts/generate.sh
- run: ./scripts/test.sh
- run: ./scripts/release.sh
- slack/notify:
event: fail
template: basic_fail_1
workflows:
publish:
jobs:
- publish:
filters:
branches:
only: master
context: slack-secrets