From 184f53a426eb84771b701142ceeb84c1483fff7a Mon Sep 17 00:00:00 2001 From: Brad Date: Sun, 24 Sep 2023 13:17:29 +0200 Subject: [PATCH] debug: test using nvm --- .github/workflows/debug.yml | 22 ++++++++++++++++++++++ scripts/nvm-iterator.sh | 11 +++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/debug.yml create mode 100755 scripts/nvm-iterator.sh diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml new file mode 100644 index 0000000..d08fad8 --- /dev/null +++ b/.github/workflows/debug.yml @@ -0,0 +1,22 @@ +name: Debug Update Node.js Versions + +on: + push: + branches: [ develop ] + +jobs: + collect-version-data: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.1.0 + - name: Install NVM + run: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash + - 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 diff --git a/scripts/nvm-iterator.sh b/scripts/nvm-iterator.sh new file mode 100755 index 0000000..d4d2101 --- /dev/null +++ b/scripts/nvm-iterator.sh @@ -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