Skip to content

Commit 284ffac

Browse files
committed
Add CI check to ensure mozjs is bumped
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
1 parent 4a2619d commit 284ffac

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
@@ -355,6 +355,19 @@ jobs:
355355
exit 1
356356
fi
357357
358+
- name: Ensure mozjs version is bumped if mozjs-sys version bumped
359+
if: ${{ github.event_name == 'pull_request' && steps.changes.outputs.needs_mozjs_sys_bump == 'true' }}
360+
run: |
361+
CHANGED=$(git diff origin/main -- mozjs/Cargo.toml | grep '^+\s*version\s*=' || true)
362+
if [ -n "$CHANGED" ]; then
363+
echo "✅ mozjs version bumped: $CHANGED"
364+
exit 0
365+
else
366+
echo "❌ No mozjs version bump found."
367+
echo "Please bump mozjs version to trigger publishing a new crates.io release on landing."
368+
exit 1
369+
fi
370+
358371
build_result:
359372
name: Result
360373
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)