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 900ac3a commit b5bfe7aCopy full SHA for b5bfe7a
1 file changed
.github/workflows/affine-vscode-publish.yml
@@ -23,6 +23,7 @@ on:
23
- 'affine-vscode-v*'
24
permissions:
25
contents: read
26
+ id-token: write # npm provenance via GitHub OIDC
27
concurrency:
28
group: ${{ github.workflow }}-${{ github.ref }}
29
cancel-in-progress: true
@@ -54,7 +55,7 @@ jobs:
54
55
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > "${HOME}/.npmrc"
56
- name: Publish to npm
57
working-directory: packages/affine-vscode
- run: npm publish --access public
58
+ run: npm publish --provenance --access public
59
- name: Clean up npm auth
60
if: always()
61
run: rm -f "${HOME}/.npmrc"
0 commit comments