Skip to content

Commit 65cbd8a

Browse files
committed
version update, fix npm publish
1 parent d6b2d99 commit 65cbd8a

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ jobs:
2020
- uses: actions/setup-node@v4
2121
with:
2222
node-version: 22
23-
registry-url: https://registry.npmjs.org/
23+
registry-url: 'https://registry.npmjs.org'
2424
- run: npm install
2525
- run: npm run build
26-
- name: Publish to npm (dry-run on PR)
27-
run: |
28-
if [ "${{ github.event_name }}" == "pull_request" ]; then
29-
npm publish --provenance --access public --dry-run
30-
else
31-
npm publish --provenance --access public
32-
fi
26+
- name: Publish to npm
27+
if: github.event_name == 'release'
28+
run: npm publish --provenance --access public
29+
- name: Dry-run publish (PR only)
30+
if: github.event_name == 'pull_request'
31+
run: npm publish --provenance --access public --dry-run
3332

3433
publish-gpr:
3534
if: github.event_name == 'release'

0 commit comments

Comments
 (0)