Skip to content

Commit 8e1fcf3

Browse files
luisleo526claude
andcommitted
ci: set up Node before the docs deploy on the protected GKE runner [skip ci]
docs-post's build moved from the pf-gcp-post VM (which had Node) to gkp-4cpu-8gb-amd64 in 32fdfc7. The GKE runner image has no system Node, so cloudflare/wrangler-action failed with "Unable to locate executable file: npm" on the v1.10.0 push (docs post-merge run 41712833166) and the docs site was not deployed. A SHA-pinned actions/setup-node (v7.1.0, the pin promote-baseline.yml already uses, Node 22) now runs right before the deploy step. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent b35a5d9 commit 8e1fcf3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/docs-post.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ jobs:
137137
SAFE="$(printf '%s' "$DEPLOY_BRANCH" | tr -c 'A-Za-z0-9._/-' '-')"
138138
echo "branch=$SAFE" >> "$GITHUB_OUTPUT"
139139
140+
# The protected GKE runner image has no system Node; wrangler-action installs
141+
# wrangler with npm, so pin Node here (the same setup-node pin as promote-baseline).
142+
- name: Set up Node for wrangler
143+
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
144+
with:
145+
node-version: '22'
146+
140147
- name: Deploy to Cloudflare Pages
141148
uses: cloudflare/wrangler-action@9acf94ace14e7dc412b076f2c5c20b8ce93c79cd # v3.15.0
142149
with:

0 commit comments

Comments
 (0)