Skip to content

Commit b5bfe7a

Browse files
committed
feat(ci): package-registry provenance
1 parent 900ac3a commit b5bfe7a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/affine-vscode-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323
- 'affine-vscode-v*'
2424
permissions:
2525
contents: read
26+
id-token: write # npm provenance via GitHub OIDC
2627
concurrency:
2728
group: ${{ github.workflow }}-${{ github.ref }}
2829
cancel-in-progress: true
@@ -54,7 +55,7 @@ jobs:
5455
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > "${HOME}/.npmrc"
5556
- name: Publish to npm
5657
working-directory: packages/affine-vscode
57-
run: npm publish --access public
58+
run: npm publish --provenance --access public
5859
- name: Clean up npm auth
5960
if: always()
6061
run: rm -f "${HOME}/.npmrc"

0 commit comments

Comments
 (0)