check corepack #50
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: Modify PATH to prioritize global npm bin directory | |
run: | | |
$env:PATH = "C:\npm\prefix;" + $env:PATH | |
echo $env:PATH | |
# This step explicitly moves the global npm bin directory to the front. | |
- name: Check location of corepack | |
run: | | |
C:\Windows\System32\where.exe corepack | |
- name: check corepack version | |
run: | | |
corepack --version | |
# - name: Run pnpm install | |
# run: pnpm install | |