Skip to content

Commit 12cbf0d

Browse files
committed
ci: fix release-plz
1 parent fb1ae8e commit 12cbf0d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release-plz.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,16 @@ jobs:
3636
VERSION: ${{ fromJSON(steps.release-plz.outputs.pr).releases[0].version }}
3737
run: |
3838
set -e
39-
if [[ -n "$PR_NUMBER" ]]; then
40-
jq --arg version "${VERSION}" '.version = ($VERSION)' npm/package.json > tmp
39+
40+
pr_number="${PR_NUMBER}"
41+
42+
if [[ -n "$pr_number" ]]; then
43+
version="${VERSION}"
44+
45+
jq --arg version "${version}" '.version = ($version)' npm/package.json > tmp
4146
mv tmp npm/package.json
4247
43-
gh pr checkout $PR_NUMBER
48+
gh pr checkout $pr_number
4449
git add .
4550
git commit --amend --no-edit
4651
git push --force-with-lease

0 commit comments

Comments
 (0)