Skip to content

Commit 3b3caf7

Browse files
committed
Use pnpm in CI
1 parent c827806 commit 3b3caf7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ jobs:
3030

3131
- name: Setup Node.js environment
3232
uses: actions/setup-node@v3.0.0
33+
- uses: pnpm/action-setup@v4
3334

3435
- name: Install packages
35-
run: npm ci
36+
run: pnpm ci
3637

3738
# Environment variables
3839
- name: create env files
@@ -44,7 +45,7 @@ jobs:
4445
4546
# Build, with no base url since in prod it's expected to be hosted on the same server at the root
4647
- name: Build
47-
run: npm run build
48+
run: pnpm run build
4849

4950
- name: Functions npm ci
5051
run: npm ci --prefix "functions"

.github/workflows/pull-request.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,23 @@ jobs:
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2323
- uses: actions/checkout@v2
24+
- uses: pnpm/action-setup@v4
2425

2526
- name: Install packages
26-
run: npm ci
27+
run: pnpm ci
2728

2829
- name: Build
29-
run: npm run build
30+
run: pnpm run build
3031

3132
- name: Lint
32-
run: npm run lint
33+
run: pnpm run lint
3334
build-functions:
3435
runs-on: ubuntu-latest
3536
steps:
3637
- uses: actions/checkout@v2
38+
- uses: pnpm/action-setup@v4
3739
- name: Install packages (webapp)
38-
run: npm ci
40+
run: pnpm ci
3941
- name: Install packages (functions)
4042
run: npm ci --prefix=functions
4143

0 commit comments

Comments
 (0)