From 5a178a34267d6615f7c1af81a0ffda73a7274ca3 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Mon, 28 Oct 2024 10:27:12 +0700 Subject: [PATCH] fix: add node version into deploy --- .github/workflows/deploy.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fb15d73..7e67d01 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,9 +5,6 @@ on: branches: - main -env: - NODE_VERSION: ${{ variables.GLOBAL_NVM_USE_VERSION }} - jobs: deploy: runs-on: self-hosted @@ -22,6 +19,6 @@ jobs: port: ${{ secrets.REMOTE_PORT }} script: | source "$HOME/.nvm/nvm.sh" - nvm use $NODE_VERSION + nvm use ${{ env.GLOBAL_NVM_USE_VERSION }} cd ${{ secrets.DOCS_RUNNER_PATH }} ${{ secrets.DOCS_RUNNER_COMMAND }}