We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e54b4b commit 9d8524dCopy full SHA for 9d8524d
1 file changed
.github/workflows/npm-publish.yml
@@ -33,6 +33,7 @@ jobs:
33
34
permissions:
35
contents: read
36
+ id-token: write
37
38
steps:
39
- name: Checkout code
@@ -41,9 +42,8 @@ jobs:
41
42
- name: Set up Node.js
43
uses: actions/setup-node@v4
44
with:
- node-version: 18
45
+ node-version: 22.x
46
registry-url: https://registry.npmjs.org/
- always-auth: true
47
48
- name: Install dependencies
49
run: npm ci
@@ -57,9 +57,8 @@ jobs:
57
- name: Publish to npm
58
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
59
env:
60
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61
- NPM_CONFIG_PROVENANCE: false
62
- run: npm publish --access public
+ NPM_CONFIG_PROVENANCE: true
+ run: npm publish --access public --provenance
63
64
create_release:
65
name: Create GitHub Release
0 commit comments