File tree Expand file tree Collapse file tree 2 files changed +61
-1
lines changed
Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Original file line number Diff line number Diff line change 1- name : Deploy
1+ name : Release
22on :
33 push :
44 branches :
Original file line number Diff line number Diff line change 1+ name : Storybook
2+ on :
3+ push :
4+ branches :
5+ - master
6+ paths :
7+ - ' stories/**'
8+ - ' example/**'
9+ - README.md
10+
11+ pull_request :
12+ branches :
13+ - master
14+ paths :
15+ - ' stories/**'
16+ - ' example/**'
17+ - README.md
18+
19+ jobs :
20+ build :
21+ runs-on : ubuntu-latest
22+
23+ steps :
24+ - name : Begin CI...
25+ uses : actions/checkout@v2
26+
27+ - name : Use Node 12
28+ uses : actions/setup-node@v1
29+ with :
30+ node-version : 12.x
31+
32+ - name : Use cached node_modules
33+ uses : actions/cache@v1
34+ with :
35+ path : node_modules
36+ key : nodeModules-${{ hashFiles('**/yarn.lock') }}
37+ restore-keys : |
38+ nodeModules-
39+
40+ - name : Install dependencies
41+ run : yarn install --frozen-lockfile
42+ env :
43+ CI : true
44+
45+ # - name: Lint
46+ # run: yarn lint
47+ # env:
48+ # CI: true
49+
50+ # - name: Test
51+ # run: yarn test --ci --coverage --maxWorkers=2
52+ # env:
53+ # CI: true
54+
55+ - name : Release
56+ run : |
57+ npm run deploy-storybook -- --ci
58+ env :
59+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
60+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments