Deploy container is node 20, which caps wrangler at 4.86.0 #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split out of #7.
The coupling
.gitea/workflows/deploy.yml'sdeployjob runs on a pinnednode:20digest(node 20.20.2) and installs
wrangler@4.86.0. Those two pins are load-bearingon each other: wrangler dropped node 20 support after 4.86.0.
Measured in the pinned image:
Worth recording because it is easy to get wrong: before #7 the step was an
unpinned
npm install -g wrangler, and that was not installinglatest.npm resolves a bare name to the newest version whose
enginesthe running nodesatisfies, so on node 20 it resolved to 4.86.0. Pinning "the latest version"
therefore silently changed the deployed tool onto a node it cannot run on, and
because
npm installonly warns aboutengines, the failure surfaces one steplater at the actual deploy. #7 pins 4.86.0 precisely because that is what has
been running.
Why to change it
Staying on node 20 means the wrangler pin can never move forward, and node 20
itself reaches end of life. The pinned pair works today and is not urgent, but
it is a dead end.
Done when
deployjob's container is a pinned node 22 (or later LTS) digest.wrangleris pinned to a version whoseengines.nodethat image satisfies.on.push.branches,if: github.ref_name == 'main'kept on the deploy job soCloudflare is untouched, and a probe job that installs wrangler in the new
image and runs
wrangler --versionandwrangler pages deploy --help.maindeploy run is watched afterwards and the live site confirmed.