Skip to content

Commit

Permalink
fix: use nvm to check node version
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Oct 16, 2023
1 parent 582e20e commit a41bc9f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,13 @@ jobs:
run: |
rsync -avz --exclude=".git" --exclude="node_modules" clone-files/ root@${{secrets.REMOTE_HOST}}:${{secrets.REMOTE_SERVER_DIR}}
ls -a
- name: 设置 node 环境
uses: actions/setup-node@v3
with:
node-version: "19.1.0"
- name: 启动 pm2
run: |
ssh root@${{secrets.REMOTE_HOST}} "
cd ${{secrets.REMOTE_SERVER_DIR}};
ls -a;
nvm use 19.1.0
npm install -g pnpm
pnpm install;
pnpm run ts-build;
Expand Down

0 comments on commit a41bc9f

Please sign in to comment.