Skip to content

Commit 057ed6e

Browse files
authored
Merge pull request #2501 from AtCoder-NoviSteps/#2500
🔧 Update settings for pnpm/action-setup (#2500)
2 parents 7dcdbf1 + bd762ff commit 057ed6e

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 2 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:
@@ -28,20 +29,26 @@ jobs:
2829

2930
strategy:
3031
matrix:
31-
node-version: [22.x]
32+
node-version: [22]
3233

3334
steps:
3435
- name: Check out Git repository
3536
uses: actions/checkout@v5
3637

3738
- name: Setup pnpm
3839
uses: pnpm/action-setup@v4
40+
with:
41+
# Auto-detect pnpm version from package.json (requires packageManager in package.json)
42+
package_json_file: package.json
43+
run_install: false
3944

4045
- name: Use Node.js ${{ matrix.node-version }}
4146
uses: actions/setup-node@v4
4247
with:
4348
node-version: ${{ matrix.node-version }}
49+
check-latest: true
4450
cache: 'pnpm'
51+
cache-dependency-path: pnpm-lock.yaml
4552

4653
- name: Install dependencies
4754
run: pnpm install
@@ -76,13 +83,18 @@ jobs:
7683

7784
- name: Setup pnpm
7885
uses: pnpm/action-setup@v4
86+
with:
87+
# Auto-detect pnpm version from package.json (requires packageManager in package.json)
88+
package_json_file: package.json
89+
run_install: false
7990

8091
- name: Setup Node.js
8192
uses: actions/setup-node@v4
8293
with:
8394
node-version: 22
8495
check-latest: true
8596
cache: 'pnpm'
97+
cache-dependency-path: pnpm-lock.yaml
8698

8799
- name: Install dependencies
88100
run: pnpm install
@@ -123,13 +135,18 @@ jobs:
123135

124136
- name: Setup pnpm
125137
uses: pnpm/action-setup@v4
138+
with:
139+
# Auto-detect pnpm version from package.json (requires packageManager in package.json)
140+
package_json_file: package.json
141+
run_install: false
126142

127143
- name: Setup Node.js
128144
uses: actions/setup-node@v4
129145
with:
130146
node-version: 22
131147
check-latest: true
132148
cache: 'pnpm'
149+
cache-dependency-path: pnpm-lock.yaml
133150

134151
- name: Install dependencies
135152
run: pnpm install

0 commit comments

Comments
 (0)