Skip to content

Commit 4564675

Browse files
authored
fix: derive release pages version from root package (#217)
Use the released root package version for Pages destinations so publish-release does not pick an unrelated workspace tag in this monorepo.
1 parent ecd85d7 commit 4564675

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,11 @@ jobs:
9393
- id: get-release-version
9494
shell: bash
9595
run: |
96-
# Get version from the latest git tag created by the release action
97-
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
98-
if [ -z "$TAG" ]; then
99-
# Fallback to package.json version if no tag found
100-
TAG="v$(node -p "require('./package.json').version")"
101-
fi
96+
# Read the released root package version directly so Pages paths track
97+
# the monorepo release rather than whichever workspace tag git sees last.
98+
VERSION=$(node -p "require('./package.json').version")
99+
TAG="v$VERSION"
102100
echo "RELEASE_TAG=$TAG" >> "$GITHUB_OUTPUT"
103-
# Remove 'v' prefix for the version output
104-
VERSION=${TAG#v}
105101
echo "RELEASE_VERSION=$VERSION" >> "$GITHUB_OUTPUT"
106102
- id: check-rn-playground
107103
shell: bash

0 commit comments

Comments
 (0)