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 9ac10bd commit 30e2a51Copy full SHA for 30e2a51
.github/workflows/release.yml
@@ -175,6 +175,11 @@ jobs:
175
publish:
176
name: Publish package
177
runs-on: ubuntu-latest
178
+
179
+ permissions:
180
+ contents: read
181
+ id-token: write
182
183
needs:
184
- build
185
- build-freebsd-x64
@@ -208,10 +213,8 @@ jobs:
208
213
209
214
- name: Publish to NPM
210
215
run: |
211
- git config --global user.name 'github-actions[bot]'
212
- git config --global user.email 'github-actions[bot]@users.noreply.github.com'
216
npm version --allow-same-version --no-git-tag-version $VERSION
- npm publish --tag $TAG
217
+ npm publish --provenance --tag $TAG
218
if: ${{ !env.ACT }}
219
env:
220
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments