Skip to content

Commit a720d11

Browse files
authored
build: add storybook deploy step after release step (#95)
1 parent a7a8684 commit a720d11

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/workflows.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,22 @@ jobs:
8282
env:
8383
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
8484
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
85-
85+
deploy:
86+
name: Deploy
87+
runs-on: ubuntu-latest
88+
if: ${{ github.ref == 'refs/heads/master' }}
89+
needs: build
90+
steps:
91+
- uses: actions/checkout@v2
92+
with:
93+
ref: ${{ github.ref }}
94+
- name: Setup Node
95+
uses: actions/setup-node@v1
96+
- name: Install dependencies
97+
run: npm ci
98+
- name: Run Build
99+
run: npm run build
100+
- name: Deploy Storybook
101+
run: npm run deploy-storybook-ci
102+
end:
103+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)