Skip to content

Commit

Permalink
ci: release job permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Sep 4, 2023
1 parent 421d2d7 commit 40369ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -44,6 +46,6 @@ jobs:
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}

- name: Bump version
run: npx release-it --increment ${{ github.event.inputs.version }} --ci -V
run: npx release-it --increment ${{ github.event.inputs.version }} --ci -V --no-npm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 40369ab

Please sign in to comment.