Skip to content

Commit 32d9b35

Browse files
committed
switch to pnpm
1 parent f909e64 commit 32d9b35

File tree

6 files changed

+17400
-76012
lines changed

6 files changed

+17400
-76012
lines changed

.github/workflows/ci.yml

+21-19
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88

99
env:
10-
NODE_VERSION: 14
10+
NODE_VERSION: 20
1111
PERCY_PARALLEL_NONCE: ${{ github.run_id }}-${{ github.run_number }}
1212
PERCY_PARALLEL_TOTAL: 1
1313

@@ -18,24 +18,24 @@ jobs:
1818
timeout-minutes: 5
1919
steps:
2020
- name: Check out a copy of the repo
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222

23-
- name: Check lockfile version
24-
uses: mansona/npm-lockfile-version@v1
23+
- uses: pnpm/action-setup@v4
24+
name: Install pnpm
25+
with:
26+
version: 8
2527

2628
- name: Use Node.js ${{ env.NODE_VERSION }}
27-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
2830
with:
29-
cache: 'npm'
31+
cache: 'pnpm'
3032
node-version: ${{ env.NODE_VERSION }}
3133

32-
- run: npm i -g npm@9
33-
3434
- name: Install dependencies
35-
run: npm ci
35+
run: pnpm i --frozen-lockfile
3636

3737
- name: Lint
38-
run: npm run lint
38+
run: pnpm run lint
3939

4040

4141
test-app:
@@ -44,24 +44,26 @@ jobs:
4444
timeout-minutes: 10
4545
steps:
4646
- name: Check out a copy of the repo
47-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
48+
49+
- uses: pnpm/action-setup@v4
50+
name: Install pnpm
51+
with:
52+
version: 8
4853

4954
- name: Use Node.js ${{ env.NODE_VERSION }}
50-
uses: actions/setup-node@v3
55+
uses: actions/setup-node@v4
5156
with:
52-
cache: 'npm'
57+
cache: 'pnpm'
5358
node-version: ${{ env.NODE_VERSION }}
5459

55-
- run: npm i -g npm@9
56-
57-
- name: Install dependencies
58-
run: npm ci
60+
- run: pnpm install --frozen-lockfile
5961

60-
- run: npm run clone
62+
- run: pnpm run clone
6163

6264
- name: Test
6365
env:
6466
PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }}
6567
PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }}
6668
PERCY_TOKEN: 5ad6687f6b1ad3dec2b964f94d3d59ff3880baccf1492c0663e85c1ce79c1a52
67-
run: npx percy exec -- npm run test:ember
69+
run: pnpm percy exec -- pnpm run test:ember

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use-node-version=20.14.0

config/ember-cli-update.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"codemodsSource": "ember-app-codemods-manifest@1",
1212
"isBaseBlueprint": true,
1313
"options": [
14-
"--no-welcome"
14+
"--no-welcome",
15+
"--pnpm"
1516
]
1617
}
1718
]

0 commit comments

Comments
 (0)