Skip to content

Add GitHub Actions workflow for Node.js with Webpack - #16311

Closed
Kelleretoro wants to merge 1 commit into
cloudflare:mainfrom
Kelleretoro:main
Closed

Kelleretoro wants to merge 1 commit into
cloudflare:mainfrom
Kelleretoro:main

Conversation

@Kelleretoro

@Kelleretoro Kelleretoro commented Oct 16, 2026 •

Copy link
Copy Markdown

Fixes #[insert GH or internal issue link(s)].

Describe your change...


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because:

A picture of a cute animal (not mandatory, but encouraged)


Devin Review

@changeset-bot

changeset-bot Bot commented Oct 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6252981

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot closed this Oct 16, 2026
@github-project-automation github-project-automation Bot moved this from Untriaged to Done in workers-sdk Oct 16, 2026
@workers-devprod
workers-devprod requested review from a team and NuroDev and removed request for a team October 16, 2026 10:25
@workers-devprod

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/wrangler
Show detailed file reviewers
  • .github/workflows/webpack.yml: [@cloudflare/wrangler]

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 3 potential issues.

Devin Review


- name: Build
run: |
npm install

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.


strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.

Suggested change
node-version: [18.x, 20.x, 22.x]
node-version: [22.x]

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟨 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants