#236: pin the Node version #257

Merged
fable-5 merged 2 commits from feat/236-pin-node-version into main 2026-07-31 04:32:54 +02:00
3 changed files with 6 additions and 2 deletions
Showing only changes of commit 9326177534 - Show all commits

View File

@ -81,6 +81,10 @@ jobs:
echo "workflows must use node-version-file, not a literal version"
bad=1
fi
if grep -rnE 'node:[0-9][^ ]*-alpine' .gitea/workflows | grep -v "node:${ver}-alpine"; then
echo "a workflow references a different node image than node:${ver}-alpine"
bad=1
fi
if ! grep -q "\"node\": \">=${ver}\"" package.json; then
echo "package.json engines floor does not match ${ver}"
bad=1

View File

@ -55,7 +55,7 @@ jobs:
} > comment.md
# JSON-encode via a node container — the runner image guarantees
# only git/curl/docker, not python or node.
docker run --rm -i node:22.15-alpine node -e \
docker run --rm -i node:22.15.1-alpine node -e \
'const fs=require("fs");process.stdout.write(JSON.stringify({body:fs.readFileSync(0,"utf8")}))' \
< comment.md > comment.json
curl -sf -X POST \

View File

@ -54,7 +54,7 @@ jobs:
echo '_No database migrations in this release._'
fi
} > notes.md
TAG=$TAG docker run --rm -i -e TAG node:22.15-alpine node -e \
TAG=$TAG docker run --rm -i -e TAG node:22.15.1-alpine node -e \
'const fs=require("fs");const body=fs.readFileSync(0,"utf8");process.stdout.write(JSON.stringify({tag_name:process.env.TAG,name:process.env.TAG,body}))' \
< notes.md > release.json
curl -sf -X POST \