Skip to content

Commit fce6b1e

Browse files
committed
chore: use npm provenance
Configures the npm provenance mechanism for the Github release workflow. The npm provenance assures consumers of JSON Forms that the libraries available on npmjs were actually produced by the JSON Forms project.
1 parent d7c15f0 commit fce6b1e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
publish:
2525
permissions:
2626
contents: "write"
27+
id-token: "write"
2728
runs-on: "ubuntu-latest"
2829
steps:
2930
- uses: "actions/checkout@v4"
@@ -81,6 +82,7 @@ jobs:
8182
run: "pnpm publish --recursive ${{ github.event.inputs.stable_release == 'true' && ' ' || '--tag next' }}"
8283
env:
8384
NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
85+
NPM_CONFIG_PROVENANCE: "true"
8486

8587
- name: "push"
8688
if: "github.event.inputs.skip_push == 'false'"

0 commit comments

Comments
 (0)