fix: install pnpm before setup-node
This commit is contained in:
13
.github/workflows/node-ci.yml
vendored
13
.github/workflows/node-ci.yml
vendored
@@ -74,19 +74,16 @@ jobs:
|
|||||||
printf '%s\n' "${{ secrets.ssh_known_hosts }}" >> ~/.ssh/known_hosts
|
printf '%s\n' "${{ secrets.ssh_known_hosts }}" >> ~/.ssh/known_hosts
|
||||||
chmod 644 ~/.ssh/known_hosts
|
chmod 644 ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
- name: Set up pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: ${{ inputs.pnpm_version }}
|
||||||
|
|
||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.node_version }}
|
node-version: ${{ inputs.node_version }}
|
||||||
|
|
||||||
- name: Enable corepack
|
|
||||||
run: corepack enable
|
|
||||||
working-directory: ${{ inputs.working_directory }}
|
|
||||||
|
|
||||||
- name: Install pnpm
|
|
||||||
run: corepack prepare pnpm@${{ inputs.pnpm_version }} --activate
|
|
||||||
working-directory: ${{ inputs.working_directory }}
|
|
||||||
|
|
||||||
- name: Get pnpm store path
|
- name: Get pnpm store path
|
||||||
id: pnpm-store
|
id: pnpm-store
|
||||||
run: echo "store_path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
|
run: echo "store_path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
|
||||||
|
|||||||
Reference in New Issue
Block a user