Skip to content

Commit

Permalink
feat: add npm package provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig committed May 13, 2023
1 parent 1c87f15 commit e70a9bc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
jobs:
release:
runs-on: 'ubuntu-latest'
permissions:
contents: 'write'
issues: 'write'
pull-requests: 'write'
id-token: 'write'
steps:
- uses: 'actions/checkout@v3.5.2'
with:
Expand All @@ -27,6 +32,9 @@ jobs:

- run: 'npm run build:typescript'

- name: 'Verify the integrity of provenance attestations and registry signatures for installed dependencies'
run: 'npm audit signatures'

- name: 'Release'
run: 'npm run release'
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
steps:
- uses: 'actions/checkout@v3.5.2'

- name: 'Use Docker'
- name: 'Setup Docker'
uses: 'actions-hub/docker/cli@master'
env:
SKIP_LOGIN: true
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
save-exact=true
engine-strict=true
provenance=true
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"npm": ">=8.0.0"
},
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},
"files": [
"build"
Expand Down

0 comments on commit e70a9bc

Please sign in to comment.