Skip to content

fix: use npm install --ignore-scripts to avoid native build in release#7474

Merged
DennisOSRM merged 1 commit intomasterfrom
fix/release-npm-ignore-scripts
Apr 12, 2026
Merged

fix: use npm install --ignore-scripts to avoid native build in release#7474
DennisOSRM merged 1 commit intomasterfrom
fix/release-npm-ignore-scripts

Conversation

@DennisOSRM
Copy link
Copy Markdown
Collaborator

The release workflow should not attempt to build native modules. The native binaries are built separately by the CI job triggered by the tag push and uploaded to the release assets.

Using --ignore-scripts skips the 'install' script (which tries to build native modules) while still installing dependencies needed for npm publish, including husky for the prepare script.

This fixes the issue where npm install would fail trying to download prebuilt binaries that haven't been built yet.

Copilot AI review requested due to automatic review settings April 12, 2026 17:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the monthly release workflow to avoid triggering native module builds during the publish job, relying instead on prebuilt binaries produced by the tag-triggered CI workflow.

Changes:

  • Adds a dependency installation step using --ignore-scripts before npm publish to prevent running native build-related lifecycle scripts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release-monthly.yml Outdated
exit 1

- name: Install dependencies (skip native build scripts)
run: npm install --ignore-scripts
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use npm ci --ignore-scripts instead of npm install --ignore-scripts in this workflow. npm ci is deterministic (strictly respects package-lock.json) and avoids potentially rewriting the lockfile or resolving newer dependency versions during a release publish job.

Suggested change
run: npm install --ignore-scripts
run: npm ci --ignore-scripts

Copilot uses AI. Check for mistakes.
The release workflow should not attempt to build native modules. The native
binaries are built separately by the CI job triggered by the tag push and
uploaded to the release assets.

Using --ignore-scripts skips the 'install' script (which tries to build
native modules) while still installing dependencies needed for npm publish,
including husky for the prepare script.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@DennisOSRM DennisOSRM force-pushed the fix/release-npm-ignore-scripts branch from 8740c3d to 569369c Compare April 12, 2026 17:20
@DennisOSRM DennisOSRM merged commit 1da889d into master Apr 12, 2026
22 checks passed
@DennisOSRM DennisOSRM deleted the fix/release-npm-ignore-scripts branch April 12, 2026 17:25
@DennisOSRM DennisOSRM restored the fix/release-npm-ignore-scripts branch April 12, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants