Skip to content

Commit 53a3224

Browse files
committed
swap to pnpm
1 parent 13642e4 commit 53a3224

File tree

7 files changed

+20634
-67553
lines changed

7 files changed

+20634
-67553
lines changed

.github/workflows/ci.yml

+17-38
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,27 @@ jobs:
1717
runs-on: ubuntu-latest
1818
timeout-minutes: 3
1919
steps:
20-
- name: Check out a copy of the repo
21-
uses: actions/checkout@v2
22-
23-
- uses: mansona/npm-lockfile-version@v1
24-
25-
- name: Use Node.js ${{ env.NODE_VERSION }}
26-
uses: actions/setup-node@v2
20+
- uses: actions/checkout@v4
21+
- uses: pnpm/action-setup@v4
22+
- uses: actions/setup-node@v4
2723
with:
28-
cache: 'npm'
24+
cache: 'pnpm'
2925
node-version: ${{ env.NODE_VERSION }}
30-
31-
- name: Install dependencies
32-
run: npm ci
33-
34-
- name: Lint
35-
run: npm run lint
26+
- run: pnpm i --frozen-lockfile
27+
- run: pnpm run lint
3628

3729
test-app:
3830
name: Test app
3931
runs-on: ubuntu-latest
4032
timeout-minutes: 5
4133
steps:
42-
- name: Check out a copy of the repo
43-
uses: actions/checkout@v2
44-
45-
- name: Use Node.js ${{ env.NODE_VERSION }}
46-
uses: actions/setup-node@v2
34+
- uses: actions/checkout@v4
35+
- uses: pnpm/action-setup@v4
36+
- uses: actions/setup-node@v4
4737
with:
48-
cache: 'npm'
38+
cache: 'pnpm'
4939
node-version: ${{ env.NODE_VERSION }}
50-
51-
- name: Install dependencies
52-
run: npm ci
53-
54-
- name: Test
55-
run: npx percy exec -- npm run test
40+
- run: pnpm percy exec -- npm run test
5641
env:
5742
PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }}
5843
PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }}
@@ -63,25 +48,19 @@ jobs:
6348
runs-on: ubuntu-latest
6449
timeout-minutes: 5
6550
steps:
66-
- name: Check out a copy of the repo
67-
uses: actions/checkout@v2
51+
- uses: actions/checkout@v4
6852
with:
6953
ref: ${{ github.event.pull_request.head.sha }}
70-
71-
- name: Use Node.js ${{ env.NODE_VERSION }}
72-
uses: actions/setup-node@v2
54+
- uses: pnpm/action-setup@v4
55+
- uses: actions/setup-node@v4
7356
with:
74-
cache: 'npm'
57+
cache: 'pnpm'
7558
node-version: ${{ env.NODE_VERSION }}
76-
77-
- name: Install dependencies
78-
run: npm ci
79-
8059
- name: Build production app
81-
run: npm run build
60+
run: pnpm run build
8261

8362
- name: Run Lighthouse
84-
run: npx @lhci/[email protected] autorun
63+
run: pnpm lhci autorun
8564
env:
8665
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
8766
LHCI_TOKEN: ${{ secrets.LHCI_TOKEN }}

.github/workflows/ember-assets.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
permissions:
99
pull-requests: write
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
13-
fetch-depth: 0
13+
fetch-depth: 0
1414
- uses: mainmatter/ember-asset-size-action@v3
1515
with:
1616
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
ignore-scripts=false
2+
use-node-version=20.18.3

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ You will need the following things properly installed on your computer.
1919

2020
* `git clone <repository-url>` this repository
2121
* `cd ember-website`
22-
* `npm install`
22+
* `pnpm install`
2323

2424
## Running / Development
2525

26-
* `npm start`
26+
* `pnpm start`
2727
* Visit your app at [http://localhost:4200](http://localhost:4200).
2828
* Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).
2929

@@ -33,17 +33,17 @@ Make use of the many generators for code, try `ember help generate` for more det
3333

3434
### Running Tests
3535

36-
* `npm test`
37-
* `npm test --server`
36+
* `pnpm test`
37+
* `pnpm test --server`
3838

3939
### Linting
4040

41-
* `npm run lint`
42-
* `npm run lint:fix`
41+
* `pnpm run lint`
42+
* `pnpm run lint:fix`
4343

4444
### Building
4545

46-
* `npm run build` (production)
46+
* `pnpm run build` (production)
4747

4848
### Deploying
4949

0 commit comments

Comments
 (0)