From dda17e0c98e8c0805d4de0a57d25ba255c8a5121 Mon Sep 17 00:00:00 2001 From: George Oastler Date: Tue, 2 Jul 2024 18:12:05 +0100 Subject: [PATCH] fix package.json version writing in bump workflow --- .github/workflows/bump_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 2e790ad813..54f7fd9296 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -105,7 +105,7 @@ jobs: # find all package.json files, recursively pkgJsons=$(find . -name package.json -prune -not -path '*/node_modules/*' -not -path '*/.next/*') # replace the version in all package.json files - xargs -I % sh -c "cat % | jq '.version = \"${{ github.event.inputs.version }}\"' > %" <<< "$pkgJsons" + xargs -I % sh -c "cat % | jq '.version = \"${{ github.event.inputs.version }}\"' > %.new && mv %.new %" <<< "$pkgJsons" # find all Cargo.toml files cargoTomls=$(find . -name Cargo.toml -prune -not -path '*/protocol/cargo-cache/*')