From c723329d09db984430907a0185fb7a620d6cbd95 Mon Sep 17 00:00:00 2001 From: Ryan Chang Date: Wed, 2 Oct 2024 15:42:12 +0800 Subject: [PATCH] ci: update release workflow git content write permission --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7e6f56..f9b944a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,8 @@ env: jobs: github-actions: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v4 @@ -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 }} \ No newline at end of file