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.
2 parents af5abb4 + ad5fec0 commit ad91f50Copy full SHA for ad91f50
1 file changed
.github/workflows/publish.yml
@@ -10,6 +10,9 @@ jobs:
10
publish:
11
runs-on: ubuntu-latest
12
timeout-minutes: 10
13
+ permissions:
14
+ contents: read
15
+ id-token: write
16
steps:
17
- name: Checkout code
18
uses: actions/checkout@v4
@@ -21,6 +24,9 @@ jobs:
21
24
cache: npm
22
25
registry-url: "https://registry.npmjs.org/"
23
26
27
+ - name: Upgrade npm for Trusted Publishing
28
+ run: npm install -g npm@latest
29
+
30
- name: Determine pre-release tag
31
run: |
32
TAG_NAME=${GITHUB_REF_NAME}
@@ -50,6 +56,4 @@ jobs:
50
56
run: npm run build
51
57
52
58
- name: Publish
53
- run: npm publish --access public --tag ${{ env.tag }}
54
- env:
55
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
59
+ run: npm publish --provenance --access public --tag ${{ env.tag }}
0 commit comments