Skip to content

Commit 74cc641

Browse files
committed
Fix the create-release-pr workflow
1 parent 52c38d7 commit 74cc641

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/create-release-pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ jobs:
4141
- name: Version bump
4242
id: version
4343
run: |
44-
VERSION=$(pnpm version "$VERSION_TYPE" --no-git-tag-version)
44+
pnpm version "$VERSION_TYPE" --no-git-tag-version
45+
VERSION=$(node -p "JSON.parse(fs.readFileSync('package.json', 'utf8')).version")
4546
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
46-
pnpm --recursive exec pnpm pkg set version=$(node -p "JSON.parse(fs.readFileSync('package.json', 'utf8')).version")
47+
48+
pnpm --recursive exec pnpm pkg set version="$VERSION"
4749
pnpm install --no-frozen-lockfile
4850
env:
4951
VERSION_TYPE: ${{ github.event.inputs.version }}

0 commit comments

Comments
 (0)