You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,12 @@ jobs:
27
27
- uses: actions/setup-node@v3
28
28
with:
29
29
node-version: ${{ matrix.node }}
30
-
- run: npm i -g pnpm@7
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
31
36
- uses: actions/setup-node@v3
32
37
with:
33
38
node-version: ${{ matrix.node }}
@@ -65,7 +70,12 @@ jobs:
65
70
- uses: actions/setup-node@v3
66
71
with:
67
72
node-version: ${{ matrix.node }}
68
-
- run: npm i -g pnpm@7
73
+
- name: install pnpm
74
+
shell: bash
75
+
run: |
76
+
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)
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,12 @@ jobs:
25
25
- uses: actions/setup-node@v3
26
26
with:
27
27
node-version: ${{ matrix.node }}
28
-
- run: npm i -g pnpm@7
28
+
- name: install pnpm
29
+
shell: bash
30
+
run: |
31
+
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)
0 commit comments