Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Sep 18, 2024
1 parent 3e034fc commit 5a10949
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy_storybook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@ jobs:
run:
working-directory: js
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: js/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run Chromatic
uses: chromaui/action@latest
- run: npm ci
- uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: js/packages/web
25 changes: 25 additions & 0 deletions .github/workflows/publish_npm_web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
release:
types:
- published
jobs:
publish:
if: startsWith(github.event.release.tag_name, '@getcanary/web_')
runs-on: ubuntu-latest
defaults:
run:
working-directory: js
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: js/package-lock.json
- run: npm ci
- run: npm run build
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 5a10949

Please sign in to comment.