Skip to content

Commit

Permalink
chore: use npm provenance
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sdirix committed Jan 10, 2024
1 parent d7c15f0 commit fce6b1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
publish:
permissions:
contents: "write"
id-token: "write"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
Expand Down Expand Up @@ -81,6 +82,7 @@ jobs:
run: "pnpm publish --recursive ${{ github.event.inputs.stable_release == 'true' && ' ' || '--tag next' }}"
env:
NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
NPM_CONFIG_PROVENANCE: "true"

- name: "push"
if: "github.event.inputs.skip_push == 'false'"
Expand Down

0 comments on commit fce6b1e

Please sign in to comment.