Skip to content

chore(ci): fix nvm

chore(ci): fix nvm #4

Workflow file for this run

name: Deploy
on: [push]
jobs:
deploy:
if: github.ref == 'refs/heads/master'
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Run server update script
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_IP }}
port: ${{ secrets.SERVER_PORT }}
username: ${{ secrets.SERVER_USER }}
password: ${{ secrets.SERVER_PASSWORD }}
script: | export NVM_DIR=~/.nvm

Check failure on line 18 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
source ~/.nvm/nvm.sh
cd ${{ secrets.SERVER_PROJECT_PATH }}
yarn update