File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments