From a0c5bb588f99b5c1c20c9f5ce82149ec6b7d705f Mon Sep 17 00:00:00 2001 From: Dave Edge <112658177+DaveEdge1@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:46:54 -0700 Subject: [PATCH] Update gatsby-publish.yaml --- .github/workflows/gatsby-publish.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gatsby-publish.yaml b/.github/workflows/gatsby-publish.yaml index 8e8a689..5900354 100644 --- a/.github/workflows/gatsby-publish.yaml +++ b/.github/workflows/gatsby-publish.yaml @@ -20,10 +20,11 @@ jobs: - name: Download nvm run: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash - name: Install nvm - - bash: | - . $HOME/.nvm/nvm.sh > /dev/null 2>&1 || true - nvm ls - nvm use v14 + - run: | + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + nvm use 14 + npm ci - name: install node14 run: nvm install 14 - name: show node version