debug: test using nvm #7
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: Debug Update Node.js Versions | |
on: | |
push: | |
branches: [ develop ] | |
jobs: | |
collect-version-data: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install NVM | |
run: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash | |
- name: Download latest Node.js versions | |
run: wget https://nodejs.org/download/release/index.json -O node-versions.json | |
- name: List node versions | |
run: jq -r '.[].version' node-versions.json | sort -V | uniq | |
- run: | | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
nvm ls-remote | |
./scripts/nvm-iterator.sh | |
- run: | | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
nvm ls-remote |