Skip to content

Commit 68e71d8

Browse files
committed
updated: publish script
1 parent bca6b11 commit 68e71d8

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,17 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 'lts'
20+
registry-url: 'https://registry.npmjs.org'
1721

1822
- name: Publish package to npmjs.com
19-
run: npm publish
23+
- run: npm ci
24+
- run: npm run build
25+
- run: npm publish --provenance --access public
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2028

2129
- name: Publish package to jsr.io
2230
run: npx jsr publish

0 commit comments

Comments
 (0)