Skip to content

Commit

Permalink
Refactor GitHub Actions workflow for npm package publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
a179346 committed Sep 17, 2024
1 parent 8f11e7f commit 8575c0e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ jobs:
publish-npm-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Checkout
uses: actions/checkout@v3
- name: Get tags
run: git fetch --tags origin
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run publish-packages
- name: Install dependencies
run: npm ci
- name: Publish packages
run: npm run publish-packages
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 8575c0e

Please sign in to comment.