Skip to content

Commit

Permalink
🐛 configure jobs permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianWilms committed Apr 5, 2024
1 parent c16600d commit dbd23e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
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
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -19,7 +21,7 @@ jobs:
- run: npm run build # or any other step to build your package
- name: run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release

0 comments on commit dbd23e3

Please sign in to comment.