Skip to content

Commit cf3e15b

Browse files
committed
feat(ci): update Node.js version to 24 and enhance npm ci with retry logic
1 parent 64c71fa commit cf3e15b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,22 @@ jobs:
129129
ref: ${{ needs.codeql-gate.outputs.deploy_sha }}
130130

131131
- name: Setup Node.js 24
132+
uses: actions/setup-node@v5
133+
with:
134+
node-version: '24'
135+
cache: npm
136+
cache-dependency-path: package-lock.json
137+
138+
- name: Install dependencies (with retry)
139+
run: |
140+
echo "::group::npm ci"
141+
for attempt in 1 2 3; do
142+
npm ci && break
143+
[ $attempt -eq 3 ] && { echo "::error::npm ci failed after 3 attempts"; exit 1; }
144+
echo "Attempt $attempt failed — retrying in 15s..."
145+
sleep 15
146+
done
147+
echo "::endgroup::"
132148
133149
- name: TypeScript check
134150
run: npm run typecheck

0 commit comments

Comments
 (0)