From 5bc9a6f1577cc2ce26f705cf13879ec742df91bd Mon Sep 17 00:00:00 2001 From: Josh Black Date: Tue, 6 Aug 2024 14:26:44 -0500 Subject: [PATCH] ci: update hash generation for package --- .github/workflows/release_candidate.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_candidate.yml b/.github/workflows/release_candidate.yml index 2ed0d61aaf0..9ce3dfb396b 100644 --- a/.github/workflows/release_candidate.yml +++ b/.github/workflows/release_candidate.yml @@ -49,7 +49,12 @@ jobs: pkg_json_path=packages/react/package.json version=$(jq -r .version $pkg_json_path) - echo "$( jq ".version = \"$(echo $version)-rc.$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path + + # Update how the version is generated in these prereleases. By + # default, -rc. is included in versions when `pre.json` is present. + # Add this back in when we exit the v37 release + # TODO: remove in v37 + echo "$( jq ".version = \"$(echo $version).$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path npx changeset publish --tag next env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}