Skip to content

Commit

Permalink
fix: add node version into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Oct 28, 2024
1 parent 821bdcf commit 5a178a3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branches:
- main

env:
NODE_VERSION: ${{ variables.GLOBAL_NVM_USE_VERSION }}

jobs:
deploy:
runs-on: self-hosted
Expand All @@ -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 }}

0 comments on commit 5a178a3

Please sign in to comment.