Skip to content

Commit

Permalink
feat: enable release attestation through GitHub Actions (#1651)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSun90 authored Aug 17, 2024
1 parent f405eab commit cf4c99b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v4.1.7

Expand All @@ -16,7 +21,8 @@ jobs:
with:
node-version: 18
cache: 'npm'

- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Tag latest release
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
Expand Down

0 comments on commit cf4c99b

Please sign in to comment.