From b4d8d4b694f0e6c77615ae5b8d8b78488f978cba Mon Sep 17 00:00:00 2001 From: deltreey Date: Fri, 19 Apr 2024 11:25:28 -0500 Subject: [PATCH] manually install and change NVM --- .github/workflows/example1.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/example1.yaml b/.github/workflows/example1.yaml index 838cedc..ded286d 100644 --- a/.github/workflows/example1.yaml +++ b/.github/workflows/example1.yaml @@ -8,10 +8,19 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v4 - - name: Setup NodeJS - uses: actions/setup-node@v4 - with: - node-version: '8.17.0' + - name: Setup NVM + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/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" + which nvm + nvm install v8.17.0 + nvm use + - name: Configure NVM again + run: | + nvm install node + nvm use node - name: "Build & push Docker image" uses: mr-smithers-excellent/docker-build-push@v6.3 with: