Skip to content

Commit 01d0586

Browse files
authored
Add CI check to ensure mozjs is bumped (#677)
Signed-off-by: Jonathan Schwender <[email protected]>
1 parent 3d81d63 commit 01d0586

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,19 @@ jobs:
390390
exit 1
391391
fi
392392
393+
- name: Ensure mozjs version is bumped if mozjs-sys version bumped
394+
if: ${{ github.event_name == 'pull_request' && steps.changes.outputs.needs_mozjs_sys_bump == 'true' }}
395+
run: |
396+
CHANGED=$(git diff origin/main -- mozjs/Cargo.toml | grep '^+\s*version\s*=' || true)
397+
if [ -n "$CHANGED" ]; then
398+
echo "✅ mozjs version bumped: $CHANGED"
399+
exit 0
400+
else
401+
echo "❌ No mozjs version bump found."
402+
echo "Please bump mozjs version to trigger publishing a new crates.io release on landing."
403+
exit 1
404+
fi
405+
393406
publish-release:
394407
name: Check version and publish release
395408
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)