Skip to content

docs: run npm ci before the build in the deploy steps - #4

Merged
shenxianpeng merged 1 commit into
mainfrom
docs/deploy-npm-ci
Nov 25, 2026
Merged

shenxianpeng merged 1 commit into
mainfrom
docs/deploy-npm-ci

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

The deploy steps went straight to npm run build. On a fresh clone that fails, because esbuild is not installed yet:

Before

$ npm run build
Fetched commit_check-2.24.0-py3-none-any.whl
Error: Cannot find module 'esbuild'
  code: 'MODULE_NOT_FOUND', ...

Then forge deploy stops in lint, since out/index.js was never written:

26:15  error  function handler property 'index.run' cannot find associated file with name 'index.[jt](s|sx)'  valid-module-required

After

Step 3 reads "npm ci, npm run build, then forge deploy". With npm ci first, the build writes out/index.js, out/node_modules/ and out/python/ (checked on Node 24.13.0).

@shenxianpeng
shenxianpeng merged commit 0c0c77b into main Nov 25, 2026
1 check passed
@shenxianpeng
shenxianpeng deleted the docs/deploy-npm-ci branch November 25, 2026 10:42
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