Skip to content

Bump the Docker image to node 22 - #1536

Merged
orta merged 1 commit into
mainfrom
fix-docker-node-22
Aug 27, 2026
Merged

Bump the Docker image to node 22#1536
orta merged 1 commit into
mainfrom
fix-docker-node-22

Conversation

@orta

@orta orta commented Aug 27, 2026

Copy link
Copy Markdown
Member

The Release Danger-JS package workflow has been failing to build the action image since the prebuilt-binary changes landed:

error @yao-pkg/pkg@6.22.0: The engine "node" is incompatible with this module.
Expected version ">=22.0.0". Got "20.20.2"

The Dockerfile was still on node:20-slim. @yao-pkg/pkg is only a devDependency for the macOS binaries, but the Docker build runs a full yarn install to get build:fast, and yarn treats an engine mismatch as a hard error — so the build dies before it compiles anything.

Bumps the base image to node:22-slim: the smallest jump that clears the engine check, matching the version CI already tests against. Node 20 is EOL anyway.

Failing run

🤖 Generated with Claude Code

The action image was still on node:20-slim, but @yao-pkg/pkg (pulled in
for the prebuilt macOS binaries) declares node >=22, so yarn install
aborted with "Found incompatible module" and the image stopped building.

node 22 is the smallest jump that clears the engine check, and it matches
what CI already tests against.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@orta
orta enabled auto-merge (squash) August 27, 2026 20:57
@orta
orta merged commit 4b85397 into main Aug 27, 2026
2 checks passed
ekampf pushed a commit to Twingate/gateway that referenced this pull request Aug 31, 2026
…" (#472)

This reverts commit 774036e.

## Related Tickets & Documents

- Issue:

## Changes

Revert #467. `14.0.6` breaks Github action. The fix
danger/danger-js#1536 was merged so we need to
wait for `14.0.7`
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