Skip to content

Commit

Permalink
Give publish job write permission for id token (#51)
Browse files Browse the repository at this point in the history
## Description

<!-- Describe your changes in detail -->
<!-- Does this fix a bug, implement a new feature, etc? -->
- Give write permission to id-token. See
[docs](https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions)
for more info

### Related Issue(s)

<!-- Reference the issue this PR relates to -->
<!-- Use keywords if possible (ex. Closes #10 ) -->
<!--
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests
-->

## Screenshots

<!-- (if applicable) -->
  • Loading branch information
riccjohn authored Jun 11, 2024
2 parents 337f55f + 71764d6 commit 4261fd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Generators for OSR-style tabletop roleplaying games",
"repository": {
"type": "github",
"url": "https://github.com/riccjohn/osr-generators"
"url": "git+https://github.com/riccjohn/osr-generators.git"
},
"private": false,
"version": "0.0.2",
Expand Down

0 comments on commit 4261fd9

Please sign in to comment.