Skip to content

Commit 977bddf

Browse files
release: v0.7.10
Fix CI: replace deprecated macos-13 runner with cross-compilation, add create-release job to prevent race conditions, and upgrade actions to Node 24-native versions (checkout@v6, setup-node@v6, action-gh-release@v3).
1 parent e8b9015 commit 977bddf

3 files changed

Lines changed: 28 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,48 @@ on:
88
permissions:
99
contents: write
1010

11-
env:
12-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
13-
1411
jobs:
12+
# Create the GitHub Release first so build jobs don't race each other
13+
create-release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Create GitHub Release
17+
uses: softprops/action-gh-release@v3
18+
with:
19+
draft: false
20+
prerelease: false
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
1523
build:
24+
needs: create-release
1625
strategy:
1726
fail-fast: false
1827
matrix:
1928
include:
20-
- os: macos-latest # Apple Silicon (arm64)
29+
- os: macos-latest
2130
platform: mac
2231
arch: arm64
23-
- os: macos-13 # Intel (x64)
32+
build_cmd: npm run build && electron-builder --mac --arm64
33+
- os: macos-latest
2434
platform: mac
2535
arch: x64
26-
- os: windows-latest # Windows x64
36+
build_cmd: npm run build && electron-builder --mac --x64
37+
- os: windows-latest
2738
platform: win
28-
- os: ubuntu-latest # Linux x64
39+
build_cmd: npm run build:win
40+
- os: ubuntu-latest
2941
platform: linux
42+
build_cmd: npm run build:linux
3043

3144
runs-on: ${{ matrix.os }}
3245
name: ${{ matrix.os }} ${{ matrix.arch || '' }}
3346

3447
steps:
3548
- name: Checkout
36-
uses: actions/checkout@v4
49+
uses: actions/checkout@v6
3750

3851
- name: Setup Node.js
39-
uses: actions/setup-node@v4
52+
uses: actions/setup-node@v6
4053
with:
4154
node-version: 24
4255
cache: npm
@@ -115,19 +128,15 @@ jobs:
115128
116129
- name: Build & package
117130
env:
118-
# macOS signing — CSC_IDENTITY & CSC_IDENTITY_AUTO_DISCOVERY set by previous step
119131
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
120132
APPLE_ID: ${{ secrets.APPLE_ID }}
121133
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
122-
# GitHub token for electron-updater publish
123134
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124-
run: npm run build:${{ matrix.platform }}
135+
run: ${{ matrix.build_cmd }}
125136

126137
- name: Upload to GitHub Release
127-
uses: softprops/action-gh-release@v2.3.2
138+
uses: softprops/action-gh-release@v3
128139
with:
129-
draft: false
130-
prerelease: false
131140
fail_on_unmatched_files: false
132141
files: |
133142
dist/*.dmg

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "netcopilot",
3-
"version": "0.7.9",
3+
"version": "0.7.10",
44
"description": "NetCopilot – AI-powered SSH/Telnet terminal for network engineers",
55
"main": "./out/main/index.js",
66
"author": {

0 commit comments

Comments
 (0)