Skip to content

Commit

Permalink
debug: test using nvm
Browse files Browse the repository at this point in the history
  • Loading branch information
baparham committed Sep 24, 2023
1 parent 2bac9c0 commit 7880c4d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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
11 changes: 11 additions & 0 deletions scripts/nvm-iterator.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

nvm install v20.7.0
node --version

nvm install v18.18.0
node --version

nvm install v16.20.2
node --version

0 comments on commit 7880c4d

Please sign in to comment.