Skip to content

Commit

Permalink
chore: update publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Oct 30, 2024
1 parent f7a79ef commit 55a4405
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
WASM_OPT: 1

- name: Publish to npm
run: cd pkg && npm publish --provenance
working-directory: pkg
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -53,15 +54,18 @@ jobs:
registry-url: "https://npm.pkg.github.com"

- name: Publish to GitHub Packages
run: cd pkg && npm publish
working-directory: pkg
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to jsr.io
run: cd pkg && npx jsr publish
working-directory: pkg
run: npx jsr publish --allow-dirty

- name: Pack
run: cd pkg && npm pack
working-directory: pkg
run: npm pack

- name: Set version
id: vars
Expand Down

0 comments on commit 55a4405

Please sign in to comment.