Skip to content

Commit

Permalink
💚 [Debug] Check npm version in different shells
Browse files Browse the repository at this point in the history
Maybe running the `npm install --global npm` command in bash may not use the latest npm in other shells.
  • Loading branch information
sounisi5011 committed Mar 10, 2023
1 parent 89d0d2e commit dceda8c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,28 @@ jobs:
echo node "$(node --version)"
echo npm "$(npm --version)"
- name: Show npm version (Default shell)
run: npm --version

- name: Show npm version (sh)
if: runner.os == 'Linux'
shell: sh
run: npm --version

- name: Show npm version (cmd.exe)
if: runner.os == 'Windows'
shell: cmd
run: npm --version

- name: Show npm version (PowerShell Core)
shell: pwsh
run: npm --version

- name: Show npm version (PowerShell Desktop)
if: runner.os == 'Windows'
shell: powershell
run: npm --version

- name: Install dependencies
run: npm ci || npm install

Expand Down

0 comments on commit dceda8c

Please sign in to comment.