Skip to content

Commit 955b671

Browse files
authored
ci: update hash generation for package (#4818)
Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
1 parent 1cda89c commit 955b671

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release_candidate.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ jobs:
4949
5050
pkg_json_path=packages/react/package.json
5151
version=$(jq -r .version $pkg_json_path)
52-
echo "$( jq ".version = \"$(echo $version)-rc.$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
52+
53+
# Update how the version is generated in these prereleases. By
54+
# default, -rc. is included in versions when `pre.json` is present.
55+
# Add this back in when we exit the v37 release
56+
# TODO: remove in v37
57+
echo "$( jq ".version = \"$(echo $version).$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
5358
npx changeset publish --tag next
5459
env:
5560
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)