Skip to content

Commit 7f64ad2

Browse files
committed
chore: upgrade pnpm
1 parent 12675c5 commit 7f64ad2

File tree

3 files changed

+1000
-979
lines changed

3 files changed

+1000
-979
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,11 @@ jobs:
2424
build_successful: ${{ steps.build.outcome == 'success' }}
2525
steps:
2626
- uses: actions/checkout@v3
27-
- uses: actions/setup-node@v3
28-
with:
29-
node-version: ${{ matrix.node }}
30-
- name: install pnpm
31-
shell: bash
32-
run: |
33-
PNPM_VER=$(jq -r '.packageManager | if .[0:5] == "pnpm@" then .[5:] else "packageManager in package.json does not start with pnpm@\n" | halt_error(1) end' package.json)
34-
echo installing pnpm version $PNPM_VER
35-
npm i -g pnpm@$PNPM_VER
27+
- uses: pnpm/[email protected]
3628
- uses: actions/setup-node@v3
3729
with:
3830
node-version: ${{ matrix.node }}
3931
cache: 'pnpm'
40-
cache-dependency-path: '**/pnpm-lock.yaml'
4132
- name: install
4233
run: pnpm install --frozen-lockfile --prefer-offline
4334
# reactivate this when there is a build step
@@ -62,23 +53,14 @@ jobs:
6253
fail-fast: false
6354
matrix:
6455
os: [ ubuntu-latest, macos-latest ]
65-
node: [ 14, 16 ]
56+
node: [ 14, 16, 18, 20 ]
6657
steps:
6758
- uses: actions/checkout@v3
68-
- uses: actions/setup-node@v3
69-
with:
70-
node-version: ${{ matrix.node }}
71-
- name: install pnpm
72-
shell: bash
73-
run: |
74-
PNPM_VER=$(jq -r '.packageManager | if .[0:5] == "pnpm@" then .[5:] else "packageManager in package.json does not start with pnpm@\n" | halt_error(1) end' package.json)
75-
echo installing pnpm version $PNPM_VER
76-
npm i -g pnpm@$PNPM_VER
59+
- uses: pnpm/[email protected]
7760
- uses: actions/setup-node@v3
7861
with:
7962
node-version: ${{ matrix.node }}
8063
cache: 'pnpm'
81-
cache-dependency-path: '**/pnpm-lock.yaml'
8264
- name: install
8365
run: pnpm install --frozen-lockfile --prefer-offline
8466
- name: run tests

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"type": "git",
1212
"url": "https://github.com/sveltejs/svelte-hmr"
1313
},
14-
"packageManager": "pnpm@7.1.0",
14+
"packageManager": "pnpm@7.33.5",
1515
"engines": {
16-
"pnpm": "^7.1.0"
16+
"pnpm": ">=7.0.0"
1717
},
1818
"pnpm": {
1919
"overrides": {

0 commit comments

Comments
 (0)