Skip to content

Commit

Permalink
sample
Browse files Browse the repository at this point in the history
  • Loading branch information
priya-kinthali committed Feb 15, 2025
1 parent 4fbc734 commit 5f373bd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/usersample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
- name: Check location of corepack before removing hostedtoolcache
run: |
C:\Windows\System32\where.exe corepack
- name: Check corepack version before removal
run: |
corepack --version
- name: Get exact Node.js version
id: node-version
run: echo "NODE_VERSION=$(node -v)" >> $GITHUB_ENV
Expand All @@ -46,14 +49,17 @@ jobs:
$nodeVersion = $env:NODE_VERSION.TrimStart('v')
Remove-Item -Force "C:\hostedtoolcache\windows\node\$nodeVersion\x64\corepack*"
shell: pwsh
- name: Check corepack version after removal
run: |
corepack --version
- name: Check location of corepack after removing hostedtoolcache
run: |
C:\Windows\System32\where.exe corepack
- name: Enable Corepack
run: |
# npm i -g --force corepack
corepack enable
pnpm -v
corepack --version
- name: Check location of corepack after gloabl install
run: |
C:\Windows\System32\where.exe corepack
Expand Down

0 comments on commit 5f373bd

Please sign in to comment.