Skip to content

Commit 55a4405

Browse files
committed
chore: update publish action
1 parent f7a79ef commit 55a4405

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/publish.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ jobs:
4343
WASM_OPT: 1
4444

4545
- name: Publish to npm
46-
run: cd pkg && npm publish --provenance
46+
working-directory: pkg
47+
run: npm publish --provenance
4748
env:
4849
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4950

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

5556
- name: Publish to GitHub Packages
56-
run: cd pkg && npm publish
57+
working-directory: pkg
58+
run: npm publish
5759
env:
5860
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5961

6062
- name: Publish to jsr.io
61-
run: cd pkg && npx jsr publish
63+
working-directory: pkg
64+
run: npx jsr publish --allow-dirty
6265

6366
- name: Pack
64-
run: cd pkg && npm pack
67+
working-directory: pkg
68+
run: npm pack
6569

6670
- name: Set version
6771
id: vars

0 commit comments

Comments
 (0)