Skip to content

Commit a778b9c

Browse files
authored
Merge pull request #19 from codesyntax/develop
github action
2 parents e2b3d6c + 9020745 commit a778b9c

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,25 @@ jobs:
2222
- run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc
2323
- run: npm run release -- minor --ci
2424
# Deploy storybook to Github pages
25-
- run: npm run deploy-storybook
25+
# - name: Deploy Storybook
26+
# - run: npm run deploy-storybook
2627
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}
28+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}
30+
31+
build-and-deploy-sb:
32+
runs-on: ubuntu-latest
33+
if: github.event.pull_request.merged == true
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v2
37+
38+
- name: Install and Build
39+
run: |
40+
npm install
41+
npm run deploy-storybook
42+
43+
- name: Deploy
44+
with:
45+
branch: gh-pages
46+
folder: storybook-static # output folder from `npm run build-storybook`

0 commit comments

Comments
 (0)