Skip to content

ci: set ignore-scripts=false to fix executable build#2300

Open
pranavz28 wants to merge 1 commit into
masterfrom
ci/npmrc-ignore-scripts-false
Open

ci: set ignore-scripts=false to fix executable build#2300
pranavz28 wants to merge 1 commit into
masterfrom
ci/npmrc-ignore-scripts-false

Conversation

@pranavz28

Copy link
Copy Markdown
Contributor

Problem

The Build Executables workflow has failed for the last 3 releases (since v1.32.0-beta.8), most recently on v1.32.0. The job dies in scripts/executable.sh at:

cp: ./build/*: No such file or directory

Root cause

The release-automation PR added a root .npmrc with ignore-scripts=true. The Build Executables runner uses Node 14 → npm 6, and npm 6 honors ignore-scripts even for explicit npm run <script> (npm 7+ later relaxed this). So npm run build_cjs (BABEL_ENV=dev babel packages -d build) became a silent no-op — build/ was never created — and the following cp -R ./build/* packages/ failed.

yarn build two lines earlier is unaffected because it runs via lerna + Nx, whose task runner executes package scripts directly rather than through npm run.

Verified by elimination: same runner image, same Node version, and the exact v1.32.0 source tree all build build_cjs fine; the only delta at the first failing tag was this .npmrc.

Fix

Set ignore-scripts=false so npm run build_cjs executes on the npm-6 runner.

🤖 Generated with Claude Code

The release-automation .npmrc set `ignore-scripts=true`. On the
Build Executables runner (Node 14 / npm 6), npm honors ignore-scripts
even for explicit `npm run`, so `npm run build_cjs` became a silent
no-op: `build/` was never produced and `cp -R ./build/* packages/`
failed with "No such file or directory". This has broken the executable
build for the last 3 releases (since v1.32.0-beta.8).

`yarn build` (lerna+nx) is unaffected because nx runs package scripts
through its own task runner rather than `npm run`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pranavz28 pranavz28 requested a review from a team as a code owner June 17, 2026 11:41
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.

1 participant