-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathscrewdriver.yaml
44 lines (40 loc) · 1.24 KB
/
screwdriver.yaml
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
35
36
37
38
39
40
41
42
43
44
cache:
pipeline: [~/.npm]
shared:
image: node:12
jobs:
main:
steps:
- install: yarn install --frozen-lockfile
- lint: yarn lint
- test: yarn test-ci
- docs: |
yarn build-storybook
sd-step exec core/zip "zip -r $SD_ARTIFACTS_DIR/storybook.zip storybook-static"
requires:
- ~pr
- ~commit
publish:
requires: main
steps:
- setup-ci: git clone https://github.com/screwdriver-cd/toolbox.git /tmp/ci
- install: yarn install --frozen-lockfile
- build: yarn build
- publish: |
. /tmp/ci/git-ssh.sh
npx semantic-release
secrets:
- NPM_TOKEN
- GH_TOKEN
- GIT_KEY_BASE64
docs:
requires: publish
steps:
- setup-ci: git clone https://github.com/screwdriver-cd/toolbox.git /tmp/ci
- install: yarn install --frozen-lockfile
- docs: |
. /tmp/ci/git-ssh.sh
git remote set-url origin `git remote get-url --push origin`
yarn deploy-storybook
secrets:
- GIT_KEY_BASE64