Skip to content

Commit 709483e

Browse files
committed
Fix the create-release-pr workflow
1 parent 52c38d7 commit 709483e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ 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"
47+
4648
pnpm --recursive exec pnpm pkg set version=$(node -p "JSON.parse(fs.readFileSync('package.json', 'utf8')).version")
4749
pnpm install --no-frozen-lockfile
50+
VERSION=$(pnpm version "$VERSION_TYPE" --no-git-tag-version)
4851
env:
4952
VERSION_TYPE: ${{ github.event.inputs.version }}
5053

0 commit comments

Comments
 (0)