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
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
|
||||
- name: Set up pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: ${{ inputs.pnpm_version }}
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
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
|
||||
id: pnpm-store
|
||||
run: echo "store_path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
Reference in New Issue
Block a user