Skip to content

Commit 48cadfd

Browse files
Install system deps before node setup to fix keytar compilation
1 parent c8b978d commit 48cadfd

2 files changed

Lines changed: 8 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,16 @@ jobs:
1717
- name: Setup pnpm
1818
uses: pnpm/action-setup@v4
1919

20+
- name: Install system dependencies
21+
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev build-essential python3
22+
2023
- name: Setup Node.js
2124
uses: actions/setup-node@v4
2225
with:
2326
node-version-file: ".nvmrc"
24-
cache: "pnpm"
25-
26-
- name: Install system dependencies
27-
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev build-essential python3
2827

2928
- name: Install dependencies
30-
run: pnpm install --frozen-lockfile
31-
32-
- name: Rebuild native modules
33-
run: pnpm rebuild keytar
29+
run: pnpm install
3430

3531
- name: Build CLI
3632
run: pnpm run build

.github/workflows/release.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@ jobs:
1818
- name: Setup pnpm
1919
uses: pnpm/action-setup@v4
2020

21+
- name: Install system dependencies
22+
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev build-essential python3
23+
2124
- name: Setup Node
2225
uses: actions/setup-node@v4
2326
with:
2427
node-version-file: ".nvmrc"
25-
cache: "pnpm"
26-
27-
- name: Install system dependencies
28-
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev build-essential python3
2928

3029
- name: Install Dependencies
31-
run: pnpm install --frozen-lockfile
30+
run: pnpm install
3231

3332
- name: Build
3433
run: pnpm run build

0 commit comments

Comments
 (0)