Skip to content

Commit

Permalink
chore(workflows): updated publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Hejtmus committed Oct 16, 2024
1 parent 4d3d088 commit 1b435ee
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,22 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Checkout
uses: actions/checkout@v4

- name: Install npm
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run package
- run: npm publish --access public --provenance

- name: Install dependencies
run: npm ci

- name: Build svelte library
run: npm run package

- name: Publish signed package
run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 1b435ee

Please sign in to comment.