Skip to content

Commit c648912

Browse files
fix: revert use of sponge not available in actions Ubuntu image (#9787)
Revert use of sponge as it's not available in the Ubuntu image used in Github actions. Fixes #9770
1 parent 63e9ff9 commit c648912

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/set-versions.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ log_and_exit () {
3030

3131
perform_updates () {
3232
# update package.json
33-
jq ".version = \"$SEMVER_VERSION\"" $PACKAGE_JSON_FILE | sponge $PACKAGE_JSON_FILE
33+
tmp="${PACKAGE_JSON_FILE}_temp"
34+
jq ".version = \"$SEMVER_VERSION\"" $PACKAGE_JSON_FILE > "$tmp"
35+
mv "$tmp" $PACKAGE_JSON_FILE
3436
echo "- $PACKAGE_JSON_FILE updated"
3537

3638

0 commit comments

Comments
 (0)