Skip to content

Commit badb739

Browse files
committed
Fix ci
Fix ci
1 parent 72b03b9 commit badb739

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ name: Publish to npm
33
on:
44
push:
55
tags:
6-
- "v*.*.*"
6+
- "v*"
7+
8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
711

812
jobs:
913
publish:
@@ -28,7 +32,12 @@ jobs:
2832
uses: actions/setup-node@v4
2933
with:
3034
node-version: "20"
31-
registry-url: "https://registry.npmjs.org"
35+
registry-url: "https://registry.npmjs.org/"
36+
37+
# Ensure npm 11.5.1 or later for trusted publishing
38+
# https://github.com/orgs/community/discussions/173102#discussioncomment-14367428
39+
- name: Update npm to latest
40+
run: npm install -g npm@latest
3241

3342
- name: Publish to npm
34-
run: cd dist && npm publish --provenance
43+
run: cd dist && npm publish

0 commit comments

Comments
 (0)