mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-21 19:22:27 +00:00
ci: automatically update Cargo.lock (#2416)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated workflow to ignore changes in the `Cargo.lock` file during documentation checks, reducing unnecessary workflow failures. - Enhanced release process by adding automated lockfile updates for Node.js and Rust components. - Removed an obsolete package-lock update job from the publishing workflow to streamline releases. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# This updates the lockfile without building
|
||||
cargo metadata > /dev/null
|
||||
|
||||
pushd nodejs || exit 1
|
||||
npm install --package-lock-only
|
||||
popd
|
||||
pushd node || exit 1
|
||||
npm install --package-lock-only
|
||||
popd
|
||||
|
||||
if git diff --quiet --exit-code; then
|
||||
echo "No lockfile changes to commit; skipping amend."
|
||||
else
|
||||
git commit --amend --no-edit
|
||||
fi
|
||||
Reference in New Issue
Block a user