Skip to content

Commit 158d2f3

Browse files
committed
ci: align publish workflow with Node 22 and add npm install retry
1 parent e524a34 commit 158d2f3

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ on:
66
workflow_dispatch:
77
inputs:
88
dry_run:
9-
description: 'Build artifacts only, skip uploading to GitHub Release'
9+
description: "Build artifacts only, skip uploading to GitHub Release"
1010
required: false
1111
type: boolean
1212
default: true
1313
allow_update_published_release:
14-
description: 'Allow uploading assets to an already published release'
14+
description: "Allow uploading assets to an already published release"
1515
required: false
1616
type: boolean
1717
default: false
@@ -53,8 +53,8 @@ jobs:
5353
- name: Install Node and NPM
5454
uses: actions/setup-node@v4
5555
with:
56-
node-version: 20
57-
cache: 'npm'
56+
node-version: 22
57+
cache: "npm"
5858

5959
- name: Install Linux dependencies
6060
if: matrix.platform == 'linux'
@@ -77,7 +77,12 @@ jobs:
7777
}
7878
7979
- name: Install dependencies
80-
run: npm ci
80+
uses: nick-fields/retry@v3
81+
with:
82+
max_attempts: 3
83+
timeout_minutes: 20
84+
retry_wait_seconds: 30
85+
command: npm ci
8186

8287
- name: Make Artifacts
8388
if: matrix.platform != 'darwin'
@@ -153,8 +158,8 @@ jobs:
153158
- name: Install Node and NPM
154159
uses: actions/setup-node@v4
155160
with:
156-
node-version: 20
157-
cache: 'npm'
161+
node-version: 22
162+
cache: "npm"
158163

159164
- name: Resolve release tag
160165
id: release_tag

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description": "Antigravity Manager - Electron App",
66
"main": ".vite/build/main.js",
77
"private": true,
8+
"engines": {
9+
"node": ">=22.14.0",
10+
"npm": ">=10"
11+
},
812
"scripts": {
913
"start": "electron-forge start",
1014
"package": "electron-forge package",

0 commit comments

Comments
 (0)