-
Notifications
You must be signed in to change notification settings - Fork 6
/
screwdriver.yaml
51 lines (47 loc) · 1.25 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
45
46
47
48
49
50
51
cache:
pipeline: [~/.yarn]
shared:
image: node:14
jobs:
main:
annotations:
screwdriver.cd/ram: TURBO
screwdriver.cd/cpu: TURBO
steps:
- install-chrome: ./build-scripts/setup-chrome.sh
- yarn-cache: yarn config set cache-folder ~/.yarn
- install: yarn install --frozen-lockfile
- test: yarn test
- docs: |
yarn build-storybook
sd-step exec core/zip "zip -r $SD_ARTIFACTS_DIR/storybook.zip storybook-static"
requires:
- ~pr
- ~commit
environment:
JOBS: 2
publish:
requires: main
steps:
- setup-ci: git clone https://github.com/screwdriver-cd/toolbox.git /tmp/ci
- 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
- yarn-cache: yarn config set cache-folder ~/.yarn
- 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
environment:
JOBS: 2