Skip to content

Commit 2c29cec

Browse files
committed
Work around pnpm/action-setup@6 version bug
1 parent aaacdd4 commit 2c29cec

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/coveralls.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18+
# Work around pnpm/action-setup v6 resolving the wrong version from package.json.
19+
# https://github.com/pnpm/action-setup/issues/227
20+
- name: Read pnpm version
21+
id: pnpm-version
22+
run: echo "version=$(jq --raw-output '.devEngines.packageManager.version | split(\"+\")[0]' package.json)" >> "$GITHUB_OUTPUT"
23+
1824
- uses: pnpm/action-setup@v6
25+
with:
26+
version: ${{ steps.pnpm-version.outputs.version }}
1927

2028
- name: Use Node.js ${{ matrix.node-version }}
2129
uses: actions/setup-node@v4

.github/workflows/webpack.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17+
# Work around pnpm/action-setup v6 resolving the wrong version from package.json.
18+
# https://github.com/pnpm/action-setup/issues/227
19+
- name: Read pnpm version
20+
id: pnpm-version
21+
run: echo "version=$(jq --raw-output '.devEngines.packageManager.version | split(\"+\")[0]' package.json)" >> "$GITHUB_OUTPUT"
22+
1723
- uses: pnpm/action-setup@v6
24+
with:
25+
version: ${{ steps.pnpm-version.outputs.version }}
1826

1927
- name: Use Node.js ${{ matrix.node-version }}
2028
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)