File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed
Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,31 @@ jobs:
3131 MODULE_REGISTRY_SERVICE_GOOGLE_TOKEN_AUDIENCE : ${{ secrets.MODULE_REGISTRY_SERVICE_GOOGLE_TOKEN_AUDIENCE }}
3232 MODULE_CHANNEL_OVERRIDE : ${{ inputs.module_channel || '' }}
3333 steps :
34+ - name : Preflight Runner Tooling
35+ shell : bash
36+ run : |
37+ set -euo pipefail
38+
39+ for cmd in git node npm; do
40+ if ! command -v "${cmd}" >/dev/null 2>&1; then
41+ echo "Required command '${cmd}' is missing on this self-hosted runner."
42+ exit 1
43+ fi
44+ done
45+
46+ NODE_MAJOR="$(node -p 'process.versions.node.split(".")[0]')"
47+ if [[ "${NODE_MAJOR}" -lt 20 ]]; then
48+ echo "Node.js 20+ is required. Found: $(node -v)"
49+ exit 1
50+ fi
51+
52+ echo "Runner tooling check passed."
53+ echo "Node: $(node -v)"
54+ echo "npm: $(npm -v)"
55+
3456 - name : Checkout
3557 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
3658
37- - name : Setup Node
38- uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
39- with :
40- node-version : " 20"
41- cache : " npm"
42-
4359 - name : Install
4460 run : npm ci
4561
You can’t perform that action at this time.
0 commit comments