Skip to content

Commit

Permalink
feat: add npm provenance (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
khendrikse committed Apr 24, 2023
1 parent 29f8a89 commit 9d798de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/github-packages-releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
packages: write
steps:
Expand All @@ -15,6 +16,6 @@ jobs:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
- run: npm publish
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 5 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
steps:
- uses: navikt/github-app-token-generator@a3831f44404199df32d8f39f7c0ad9bb8fa18b1c
id: get-token
Expand All @@ -32,7 +36,7 @@ jobs:
with:
deno-version: v1.x
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
- run: npm publish --provenance
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"keywords": [],
"license": "MIT",
"repository": "netlify/edge-bundler",
"repository": "https://github.com/netlify/edge-bundler",
"bugs": {
"url": "https://github.com/netlify/edge-bundler/issues"
},
Expand Down

0 comments on commit 9d798de

Please sign in to comment.