Skip to content

Commit 723a1d8

Browse files
committed
🔧 Update settings for pnpm (#2500)
1 parent ac1a28e commit 723a1d8

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# See:
22
# https://docs.github.com/en/actions/guides/building-and-testing-nodejs#building-and-testing-your-code
33
# https://pnpm.io/ja/continuous-integration#github-actions
4+
# https://github.com/pnpm/action-setup/issues/99#issuecomment-1918361558
5+
# https://github.com/actions/setup-node#inputs
46
# https://vercel.com/guides/how-can-i-use-github-actions-with-vercel
57
# https://zenn.dev/ttskch/articles/691fb62fbb6b1b
68
# https://vercel.com/guides/set-up-a-staging-environment-on-vercel
79
# https://vercel.com/docs/projects/domains/add-a-domain#verify-domain-access
810
# https://vercel.com/docs/cli/global-options#scope
911
# https://www.prisma.io/docs/orm/prisma-client/deployment/deploy-database-changes-with-prisma-migrate
1012
# https://www.prisma.io/docs/orm/prisma-migrate/workflows/baselining
11-
# https://github.com/pnpm/action-setup/issues/99#issuecomment-1918361558
1213
name: CI
1314

1415
env:
@@ -38,17 +39,19 @@ jobs:
3839
uses: pnpm/action-setup@v4
3940
with:
4041
# Auto-detect pnpm version from package.json (requires packageManager in package.json)
41-
package_json_path: './package.json'
42+
package_json_path: package.json
4243
run_install: false
4344

4445
- name: Use Node.js ${{ matrix.node-version }}
4546
uses: actions/setup-node@v4
4647
with:
4748
node-version: ${{ matrix.node-version }}
49+
check-latest: true
4850
cache: 'pnpm'
51+
cache-dependency-path: pnpm-lock.yaml
4952

5053
- name: Install dependencies
51-
run: pnpm install --frozen-lockfile
54+
run: pnpm install
5255

5356
- name: Build
5457
run: pnpm build
@@ -82,7 +85,7 @@ jobs:
8285
uses: pnpm/action-setup@v4
8386
with:
8487
# Auto-detect pnpm version from package.json (requires packageManager in package.json)
85-
package_json_path: './package.json'
88+
package_json_path: package.json
8689
run_install: false
8790

8891
- name: Setup Node.js
@@ -91,9 +94,10 @@ jobs:
9194
node-version: 22
9295
check-latest: true
9396
cache: 'pnpm'
97+
cache-dependency-path: pnpm-lock.yaml
9498

9599
- name: Install dependencies
96-
run: pnpm install --frozen-lockfile
100+
run: pnpm install
97101

98102
- name: Build
99103
run: pnpm build
@@ -133,7 +137,7 @@ jobs:
133137
uses: pnpm/action-setup@v4
134138
with:
135139
# Auto-detect pnpm version from package.json (requires packageManager in package.json)
136-
package_json_path: './package.json'
140+
package_json_path: package.json
137141
run_install: false
138142

139143
- name: Setup Node.js
@@ -142,9 +146,10 @@ jobs:
142146
node-version: 22
143147
check-latest: true
144148
cache: 'pnpm'
149+
cache-dependency-path: pnpm-lock.yaml
145150

146151
- name: Install dependencies
147-
run: pnpm install --frozen-lockfile
152+
run: pnpm install
148153

149154
- name: Build
150155
run: pnpm build

0 commit comments

Comments
 (0)