Skip to content

Commit 66ebc81

Browse files
committed
chore: update build workflow to use pnpm for dependency installation
1 parent f7edb6c commit 66ebc81

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
node-version: 'lts/*'
2222
- name: Checkout repository
2323
uses: actions/checkout@v6
24+
- name: Install pnpm
25+
run: npm install -g pnpm
26+
- name: Set pnpm store-dir path
27+
run: mkdir -p ~/.pnpm-store && pnpm config set store-dir ~/.pnpm-store
2428
- name: Install dependencies
25-
run: npm i
29+
run: pnpm install --no-lockfile
2630
- name: Run ESLint
2731
run: npm run lint
2832
build:
@@ -37,8 +41,12 @@ jobs:
3741
node-version: 'lts/*'
3842
- name: Checkout repository
3943
uses: actions/checkout@v6
44+
- name: Install pnpm
45+
run: npm install -g pnpm
46+
- name: Set pnpm store-dir path
47+
run: mkdir -p ~/.pnpm-store && pnpm config set store-dir ~/.pnpm-store
4048
- name: Install dependencies
41-
run: npm i
49+
run: pnpm install --no-lockfile
4250
- name: Build the project
4351
run: npm run build
4452
test:
@@ -53,7 +61,11 @@ jobs:
5361
node-version: 'lts/*'
5462
- name: Checkout repository
5563
uses: actions/checkout@v6
64+
- name: Install pnpm
65+
run: npm install -g pnpm
66+
- name: Set pnpm store-dir path
67+
run: mkdir -p ~/.pnpm-store && pnpm config set store-dir ~/.pnpm-store
5668
- name: Install dependencies
57-
run: npm i
69+
run: pnpm install --no-lockfile
5870
- name: Run tests
5971
run: npm run test

0 commit comments

Comments
 (0)