Skip to content

Commit

Permalink
ci: update release workflow git content write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancyq committed Oct 2, 2024
1 parent e7c7856 commit c723329
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ env:
jobs:
github-actions:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

Expand All @@ -27,11 +29,11 @@ jobs:

- run: npm version --no-git-tag-version ${{ env.NPM_VERSION }}

- name: Commit Gemfile.lock & lib/rodiff/version.rb
- name: Commit package.json
uses: ryancyq/github-signed-commit@v1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: package*.json
commit-message: Bump version for ${{ env.NPM_VERSION }}
commit-message: "release: Bump version for ${{ env.NPM_VERSION }}"
tag: v${{ env.NPM_VERSION }}

0 comments on commit c723329

Please sign in to comment.