Skip to content

Commit

Permalink
Fix permissions for GH release workflow (#9)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Shenshin <[email protected]>
  • Loading branch information
AlexanderShenshin authored May 3, 2024
1 parent 383b231 commit 6c571f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create a new release and publish NPM package
name: Create new release and publish NPM package

on:
workflow_dispatch:
Expand All @@ -11,12 +11,15 @@ concurrency:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# pulls all commits, needed for proper changelog generation
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node.js and install dependencies
uses: ./.github/actions/setup
Expand Down
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"git": {
"requireBranch": "main",
"commitMessage": "Release ${version}",
"commitMessage": "v${version}",
"tagName": "v${version}"
},
"hooks": {
Expand Down

0 comments on commit 6c571f9

Please sign in to comment.