Skip to content

Commit 686ced9

Browse files
authored
fix: update release workflow to create an rc for styled-react (#7227)
1 parent feb7001 commit 686ced9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ jobs:
9292
npx changeset pre exit
9393
npx changeset version --snapshot
9494
else
95-
pkg_json_path=packages/react/package.json
96-
version=$(jq -r .version $pkg_json_path)
97-
echo "$( jq ".version = \"$(echo $version)-rc.$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
95+
for pkg_json_path in packages/react/package.json packages/styled-react/package.json; do
96+
version=$(jq -r .version $pkg_json_path)
97+
echo "$( jq ".version = \"$(echo $version)-rc.$(git rev-parse --short HEAD)\"" $pkg_json_path )" > $pkg_json_path
98+
done
9899
fi
99100
100101
npx changeset publish --tag next

0 commit comments

Comments
 (0)