Skip to content

Commit 9e3cefc

Browse files
committed
use pnpm to install dependencies in build workflow
1 parent 535961d commit 9e3cefc

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/build.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,30 @@ jobs:
1212
uses: actions/checkout@v3
1313
- name: Install Node.js
1414
uses: actions/setup-node@v3
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v2
17+
id: pnpm-install
18+
with:
19+
version: 6
20+
run_install: false
21+
- name: Get pnpm store directory
22+
id: pnpm-cache
23+
shell: bash
24+
run: |
25+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
26+
- uses: actions/cache@v3
27+
name: Setup pnpm cache
28+
with:
29+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
30+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
31+
restore-keys: |
32+
${{ runner.os }}-pnpm-store-
1533
- name: Install dependencies
16-
run: npm ci
34+
run: pnpm install
1735
- name: Build extension
1836
env:
1937
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
run: npm run build
38+
run: pnpm build
2139
- name: Xcode build
2240
uses: sersoft-gmbh/xcodebuild-action@v2
2341
with:

0 commit comments

Comments
 (0)