AlexKurian commited on
Commit
f43783d
·
1 Parent(s): c6655ee

fix(ci): use Node 22 and Corepack for pnpm in release workflow

Browse files
Files changed (1) hide show
  1. .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 Bun
38
- uses: oven-sh/setup-bun@v2
39
  with:
40
- bun-version: latest
41
 
42
- - name: Setup Node & pnpm
43
- uses: pnpm/action-setup@v4
44
- with:
45
- version: 10
 
46
 
47
- - name: Setup Node.js
48
- uses: actions/setup-node@v4
49
  with:
50
- node-version: 20
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
- iscc scripts/installer.iss /O.
79
- } else {
80
- Write-Host "Inno Setup iscc not in path, checking default Program Files..."
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