check corepack #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test final | |
on: | |
push: | |
branches: | |
- test-1222 | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.18.2' | |
registry-url: 'https://registry.npmjs.org' | |
- name: check corepack version | |
run: | | |
corepack --version | |
- name: Check location of corepack | |
run: | | |
C:\Windows\System32\where.exe corepack | |
- name: Install latest corepack version globally | |
run: | | |
npm install --global --force corepack@latest | |
- name: Clear hosted tool cache | |
run: | | |
Remove-Item -Recurse -Force C:\hostedtoolcache\windows\node | |
- name: check node version | |
run: | | |
node --version | |
- name: Check location of corepack | |
run: | | |
C:\Windows\System32\where.exe corepack | |
- name: check corepack version | |
run: | | |
corepack enable | |
corepack --version | |
# - name: Run pnpm install | |
# run: pnpm install | |