Skip to content

Commit e2ed09d

Browse files
committed
chore: CI config
1 parent 6fb3ca6 commit e2ed09d

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy
1+
name: Release
22
on:
33
push:
44
branches:

.github/workflows/storybook.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 }}

0 commit comments

Comments
 (0)