Spaces:
Sleeping
Sleeping
Commit ·
f43783d
1
Parent(s): c6655ee
fix(ci): use Node 22 and Corepack for pnpm in release workflow
Browse files- .github/workflows/release.yml +16 -19
.github/workflows/release.yml
CHANGED
|
@@ -34,21 +34,21 @@ jobs:
|
|
| 34 |
- name: Checkout Repository
|
| 35 |
uses: actions/checkout@v4
|
| 36 |
|
| 37 |
-
- name: Setup
|
| 38 |
-
uses:
|
| 39 |
with:
|
| 40 |
-
|
| 41 |
|
| 42 |
-
- name:
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
|
|
|
| 46 |
|
| 47 |
-
- name: Setup
|
| 48 |
-
uses:
|
| 49 |
with:
|
| 50 |
-
|
| 51 |
-
cache: 'pnpm'
|
| 52 |
|
| 53 |
- name: Install Dependencies
|
| 54 |
run: pnpm install --frozen-lockfile
|
|
@@ -74,15 +74,12 @@ jobs:
|
|
| 74 |
if: matrix.target.os == 'windows-latest'
|
| 75 |
shell: pwsh
|
| 76 |
run: |
|
| 77 |
-
if (Get-Command iscc -ErrorAction SilentlyContinue) {
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
$innoPath = "C:\Program Files (x86)\Inno Setup 6\iscc.exe"
|
| 82 |
-
if (Test-Path $innoPath) {
|
| 83 |
-
& $innoPath scripts/installer.iss /O.
|
| 84 |
-
}
|
| 85 |
}
|
|
|
|
| 86 |
|
| 87 |
- name: Upload Binary Artifact
|
| 88 |
uses: actions/upload-artifact@v4
|
|
|
|
| 34 |
- name: Checkout Repository
|
| 35 |
uses: actions/checkout@v4
|
| 36 |
|
| 37 |
+
- name: Setup Node.js 22
|
| 38 |
+
uses: actions/setup-node@v4
|
| 39 |
with:
|
| 40 |
+
node-version: 22
|
| 41 |
|
| 42 |
+
- name: Enable Corepack & pnpm
|
| 43 |
+
shell: bash
|
| 44 |
+
run: |
|
| 45 |
+
corepack enable
|
| 46 |
+
corepack prepare pnpm@latest --activate
|
| 47 |
|
| 48 |
+
- name: Setup Bun
|
| 49 |
+
uses: oven-sh/setup-bun@v2
|
| 50 |
with:
|
| 51 |
+
bun-version: latest
|
|
|
|
| 52 |
|
| 53 |
- name: Install Dependencies
|
| 54 |
run: pnpm install --frozen-lockfile
|
|
|
|
| 74 |
if: matrix.target.os == 'windows-latest'
|
| 75 |
shell: pwsh
|
| 76 |
run: |
|
| 77 |
+
if (-not (Get-Command iscc -ErrorAction SilentlyContinue)) {
|
| 78 |
+
Write-Host "Installing Inno Setup via Chocolatey..."
|
| 79 |
+
choco install innosetup -y --no-progress
|
| 80 |
+
$env:Path += ";C:\Program Files (x86)\Inno Setup 6"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
}
|
| 82 |
+
iscc scripts/installer.iss /O.
|
| 83 |
|
| 84 |
- name: Upload Binary Artifact
|
| 85 |
uses: actions/upload-artifact@v4
|