We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 059082b + 4fd5360 commit 3b97ab4Copy full SHA for 3b97ab4
1 file changed
.github/workflows/deploy.yml .github/workflows/cd.yml.github/workflows/deploy.yml renamed to .github/workflows/cd.yml
@@ -5,6 +5,10 @@ on:
5
tags:
6
- v*
7
8
+permissions:
9
+ id-token: write
10
+ contents: write
11
+
12
jobs:
13
deploy:
14
runs-on: ubuntu-latest
@@ -59,10 +63,16 @@ jobs:
59
63
git push origin main
60
64
git push origin ${{ steps.version.outputs.current-version }}
61
65
66
+ - name: Setup Node.js for NPM publish
67
+ uses: actions/setup-node@v4
68
+ with:
69
+ node-version: "20"
70
+ registry-url: "https://registry.npmjs.org"
71
72
+ - name: Update npm for OIDC support
73
+ run: npm install -g npm@latest
74
62
75
- name: Publish to NPM
- run: |
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- echo "//registry.npmjs.org/:always-auth=true" >> ~/.npmrc
- npm publish
76
env:
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
77
+ NPM_CONFIG_PROVENANCE: true
78
+ run: npm publish --provenance
0 commit comments