Skip to content

Commit

Permalink
Simplify workflow definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnyroeller committed Aug 20, 2024
1 parent 568eb8a commit ec5ade6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci --unsafe-perm
- run: npm run build
- run: npm test
- run: npm test
17 changes: 5 additions & 12 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,11 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci --unsafe-perm
- name: Build Storybook
run: npm run storybook:build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm ci --unsafe-perm
- run: npm run storybook:build
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static
5 changes: 1 addition & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci --unsafe-perm
- run: npm run build
- run: npm test
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit ec5ade6

Please sign in to comment.