Skip to content

Commit 01e1c5d

Browse files
committed
ci: refresh Cargo lockfile after version stamping
1 parent f689079 commit 01e1c5d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/reusable-release-build.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ jobs:
6969
for f in crates/vp_global_cli/Cargo.toml packages/cli/binding/Cargo.toml; do
7070
node -e 'const fs=require("fs"),f=process.argv[1];fs.writeFileSync(f,fs.readFileSync(f,"utf8").replace(/^version = "[^"]*"/m,`version = "${process.env.VERSION}"`))' "$f"
7171
done
72+
# Keep the workspace package entries in Cargo.lock consistent with
73+
# the stamped versions before later commands use --locked.
74+
cargo update --workspace
7275
# Stamp the package.json files too:
7376
# - packages/cli: the bundled JS dist inlines ${VERSION} as
7477
# cliPkg.version (VITE_PLUS_VERSION). Without this a preview

0 commit comments

Comments
 (0)