Skip to content

Commit 06afd65

Browse files
authored
Merge pull request #45 from emberjs/switch-to-pnpm
Switch to pnpm
2 parents c8687c6 + c6a32a5 commit 06afd65

File tree

5 files changed

+9279
-7828
lines changed

5 files changed

+9279
-7828
lines changed

.github/workflows/nodejs.yml

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,49 +18,59 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v1
22-
- uses: actions/setup-node@v3
21+
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v2
23+
- uses: actions/setup-node@v4
2324
with:
24-
node-version: 18.x
25-
- name: install yarn
26-
run: npm install -g yarn
27-
- name: install dependencies
28-
run: yarn install --frozen-lockfile
29-
- name: linting
30-
run: yarn lint
25+
cache: 'pnpm'
26+
- run: pnpm install
27+
- run: pnpm lint
3128

3229
test:
3330
name: Tests
3431
runs-on: ubuntu-latest
3532

3633
strategy:
3734
matrix:
38-
node: ['14', '18']
35+
node: ['18', '20']
3936

4037
steps:
41-
- uses: actions/checkout@v1
42-
- uses: actions/setup-node@v3
38+
- uses: actions/checkout@v4
39+
- uses: pnpm/action-setup@v2
40+
- uses: actions/setup-node@v4
4341
with:
42+
cache: 'pnpm'
4443
node-version: ${{ matrix.node }}
45-
- name: install yarn
46-
run: npm install -g yarn
47-
- name: install dependencies
48-
run: yarn install --frozen-lockfile
49-
- name: test
50-
run: yarn test
44+
- run: pnpm install
45+
- run: pnpm test
46+
47+
test_old:
48+
name: Tests (Node 14)
49+
runs-on: ubuntu-latest
50+
51+
steps:
52+
- uses: actions/checkout@v4
53+
- uses: pnpm/action-setup@v2
54+
with:
55+
version: 7
56+
- uses: actions/setup-node@v4
57+
with:
58+
cache: 'pnpm'
59+
node-version: 14
60+
# lockfile format version 9 didn't exist with pnpm 7
61+
- run: pnpm install --no-lockfile
62+
- run: pnpm test
63+
5164

5265
floating-test:
5366
name: Floating dependencies
5467
runs-on: ubuntu-latest
5568

5669
steps:
57-
- uses: actions/checkout@v1
58-
- uses: actions/setup-node@v3
70+
- uses: actions/checkout@v4
71+
- uses: pnpm/action-setup@v2
72+
- uses: actions/setup-node@v4
5973
with:
60-
node-version: '18.x'
61-
- name: install yarn
62-
run: npm install -g yarn
63-
- name: install dependencies
64-
run: yarn install --no-lockfile
65-
- name: test
66-
run: yarn test
74+
cache: 'pnpm'
75+
- run: pnpm install --no-lockfile
76+
- run: pnpm test

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
auto-install-peers=false
2+
use-node-version=18.20.2

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@
8585
"tokenRef": "GITHUB_AUTH"
8686
}
8787
},
88+
"packageManager": "[email protected]",
8889
"volta": {
89-
"node": "18.15.0",
90-
"yarn": "1.22.19"
90+
"node": "18.20.2",
91+
"pnpm": "9.0.6"
9192
}
9293
}

0 commit comments

Comments
 (0)