Skip to content

Commit a5920ec

Browse files
committed
fix(release): use reliable signed commit action
1 parent 5ba9ad4 commit a5920ec

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,15 @@ jobs:
113113
if: steps.release.outputs.new_release_published == 'true'
114114
env:
115115
RELEASE_VERSION: ${{ steps.release.outputs.new_release_version }}
116-
run: |
117-
npm pkg set version="$RELEASE_VERSION"
118-
git add -- package.json
119-
120-
- name: Normalize commit target
121-
if: steps.release.outputs.new_release_published == 'true'
122-
run: git remote set-url origin "https://github.com/${GITHUB_REPOSITORY}.git"
116+
run: npm pkg set version="$RELEASE_VERSION"
123117

124118
- name: Commit released package version
125119
if: steps.release.outputs.new_release_published == 'true'
126-
uses: grafana/github-api-commit-action@b1d81091e8480dd11fcea8bc1f0ab977a0376ca5 # v1.0.0
120+
uses: planetscale/ghcommit-action@a6b150b81dca5dd027baa898604418eec9e11465 # v0.2.22
127121
with:
128-
commit-message: "chore(release): ${{ steps.release.outputs.new_release_version }} [skip ci]"
129-
success-if-no-changes: true
130-
token: ${{ steps.release-bot.outputs.token }}
122+
commit_message: "chore(release): ${{ steps.release.outputs.new_release_version }} [skip ci]"
123+
repo: ${{ github.repository }}
124+
branch: main
125+
file_pattern: package.json
126+
env:
127+
GITHUB_TOKEN: ${{ steps.release-bot.outputs.token }}

0 commit comments

Comments
 (0)