Skip to content

Commit

Permalink
Add write permission to new-version.yml
Browse files Browse the repository at this point in the history
so that it can create github release after publishing to npm
  • Loading branch information
jamcry authored Jun 3, 2024
1 parent 6f904d4 commit 96cb51e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: # only trigger when a commit was pushed to main
- main

permissions:
# Used by `create-release` to create a new release on the repo after publishing to npm.
contents: write

jobs:
publish:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 96cb51e

Please sign in to comment.