Skip to content

Commit

Permalink
chore: setup provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Jul 26, 2023
1 parent f8070f0 commit 99be456
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read # for checkout

jobs:
build:
name: Build, lint and test coverage
Expand Down Expand Up @@ -184,6 +187,11 @@ jobs:
- run: npm run test:node-runtimes

release:
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
needs: [build, test, deno-runtime, bun-runtime, edge-runtime, browser-runtime, node-runtimes]
# only run if opt-in during workflow_dispatch
if: github.event.inputs.release == 'true'
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,9 @@
},
"engines": {
"node": ">=14.18"
},
"publishConfig": {
"access": "public",
"provenance": true
}
}

0 comments on commit 99be456

Please sign in to comment.