We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72b03b9 commit badb739Copy full SHA for badb739
1 file changed
.github/workflows/npm-publish.yml
@@ -3,7 +3,11 @@ name: Publish to npm
3
on:
4
push:
5
tags:
6
- - "v*.*.*"
+ - "v*"
7
+
8
+permissions:
9
+ id-token: write # Required for OIDC
10
+ contents: read
11
12
jobs:
13
publish:
@@ -28,7 +32,12 @@ jobs:
28
32
uses: actions/setup-node@v4
29
33
with:
30
34
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
41
42
- name: Publish to npm
- run: cd dist && npm publish --provenance
43
+ run: cd dist && npm publish
0 commit comments