mirror of
https://github.com/actions/setup-node
synced 2024-11-30 21:22:29 +08:00
Update versions.yml
This commit is contained in:
parent
70be4f1640
commit
0fe4194162
19
.github/workflows/versions.yml
vendored
19
.github/workflows/versions.yml
vendored
@ -34,19 +34,22 @@ jobs:
|
|||||||
node-version: [lts/dubnium, lts/erbium, lts/fermium, lts/*, lts/-1]
|
node-version: [lts/dubnium, lts/erbium, lts/fermium, lts/*, lts/-1]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install NVM
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
|
||||||
|
echo 'export NVM_DIR="$HOME/.config/nvm"' >> $GITHUB_ENV
|
||||||
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $GITHUB_ENV
|
||||||
|
echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> $GITHUB_ENV
|
||||||
|
- name: Source NVM
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
source $GITHUB_ENV
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Install NVM
|
|
||||||
if: runner.os == 'Linux'
|
|
||||||
run: |
|
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
|
||||||
- if: runner.os != 'Windows' && runner.os != 'macOS'
|
- if: runner.os != 'Windows' && runner.os != 'macOS'
|
||||||
name: Verify node and npm
|
name: Verify node and npm
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user