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 66971a8 commit 821bdcf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

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

jobs:
deploy:
runs-on: self-hosted
Expand All @@ -18,5 +21,7 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.REMOTE_PORT }}
script: |
source "$HOME/.nvm/nvm.sh"
nvm use $NODE_VERSION
cd ${{ secrets.DOCS_RUNNER_PATH }}
${{ secrets.DOCS_RUNNER_COMMAND }}

0 comments on commit 821bdcf

Please sign in to comment.