Repository navigation
Add GitHub Actions workflow for Node.js with Webpack - #16311
Kelleretoro wants to merge 1 commit into
Conversation
|
|
Hi @Kelleretoro. Thanks for taking the time to contribute to Workers SDK. This PR has been automatically closed because you are not currently a registered (vouched) collaborator for this repository. AI tools now let our team generate proposed code changes quickly. Reviewing changes, checking that they solve the right problem, and maintaining code quality over time still take substantial care and effort. We therefore limit PRs to registered collaborators so we can focus that effort where it is most useful. For the majority of external contributors, the most effective way to help is through issues: describing a problem or use case, providing a minimal reproduction, investigating its cause, or helping us verify a fix. Those contributions help us understand what needs to change and are very welcome. We will take an initial look at this PR and decide whether it is something we want to invest time in reviewing and maintaining. We may reopen it if we decide to proceed, but we cannot guarantee that it will be reopened or receive a full review. |
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
|
|
||
| - name: Build | ||
| run: | | ||
| npm install |
There was a problem hiding this comment.
🔴 Dependency installation fails across the matrix
Every npm install encounters the root manifest's catalog:default dependency references and fails with an unsupported protocol error. No matrix job reaches the build.
Learn more
The repository is a pnpm workspace. Its root dependencies use catalog:default, resolved through the workspace catalog; npm cannot resolve this protocol. The existing dependency installation action installs pnpm and runs pnpm install --frozen-lockfile. As written, the build step ends before it can execute the next command.
Example: On a fresh checkout, npm install encounters the root @types/node: catalog:default declaration, raises EUNSUPPORTEDPROTOCOL, and prevents npx webpack from running.
Recommended fix: Use the shared install-dependencies action or install the declared pnpm version and run pnpm install --frozen-lockfile; then run a workspace build command that exists in this repository.
Was this helpful? React with 👍 or 👎 to provide feedback.
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [18.x, 20.x, 22.x] |
There was a problem hiding this comment.
🟡 Two build jobs use unsupported Node versions
The 18.x and 20.x matrix entries run below the root manifest's Node >=22 requirement. Those jobs cannot validate a supported workspace build.
Learn more
The root engines and Volta settings declare Node >=22 and pin development to Node 22.22.1. The existing CI installation action defaults to Node 22.23.1. These matrix entries select two runtimes below the repository's supported range.
Example: A Node 18 job runs pnpm build after the installation is corrected; it runs the workspace on a version excluded by its root engines.node declaration rather than checking a supported build.
Recommended fix: Limit the matrix to supported Node versions, or test unsupported runtimes separately with an explicit expected-failure policy.
| node-version: [18.x, 20.x, 22.x] | |
| node-version: [22.x] |
Was this helpful? React with 👍 or 👎 to provide feedback.
| node-version: [18.x, 20.x, 22.x] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 |
There was a problem hiding this comment.
🟨 Build dependencies can access checkout credentials
On main-branch pushes, actions/checkout retains the workflow token without a permissions limit. The build runs dependencies with access to that token, although it needs no authenticated Git operations.
Was this helpful? React with 👍 or 👎 to provide feedback.
Fixes #[insert GH or internal issue link(s)].
Describe your change...
A picture of a cute animal (not mandatory, but encouraged)