Skip to content

Commit

Permalink
add permissions to publish npm packages with provenance (#124)
Browse files Browse the repository at this point in the history
* add permissions to publish npm packages with provenance

for the reference see https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions

* Update yml

---------

Co-authored-by: Igor Octaviano <[email protected]>
  • Loading branch information
fedorov and igoroctaviano authored Jun 6, 2024
1 parent 179f0fd commit da8dfd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
types: [published]
jobs:
build:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit da8dfd9

Please sign in to comment.