You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! here is my pipeline
name: Deploy to DEV server
on:
push:
branches:
- dev
jobs:
deploy_dev:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: dev
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_RUNNER }}
- name: Add SSH known hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan -p ${{ secrets.SSH_PORT }} ${{ secrets.HOST_DEV }} >> ~/.ssh/known_hosts
- name: Deploy to server
run: |
ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.HOST_USER }}@${{ secrets.HOST_DEV }} << 'EOF'
cd /home/app
git checkout dev
git pull origin dev
yarn
yarn db:migrate
pm2 restart crm_backend
EOF
In "deploy to server" section got errors:
-bash: line 4: yarn: command not found
-bash: line 5: yarn: command not found
/usr/bin/env: ‘node’: No such file or directory
Could you please help with how to fix?
The text was updated successfully, but these errors were encountered:
Hello @thelubomir , The errors you're encountering in the "Deploy to server" section indicate that the yarn command and node are not found on the remote server. This issue is not related to the setup-node step in the GitHub Actions workflow itself, but rather to the environment on the remote server where the deployment is being executed.
Hello! here is my pipeline
name: Deploy to DEV server
on:
push:
branches:
- dev
jobs:
deploy_dev:
runs-on: self-hosted
In "deploy to server" section got errors:
-bash: line 4: yarn: command not found
-bash: line 5: yarn: command not found
/usr/bin/env: ‘node’: No such file or directory
Could you please help with how to fix?
The text was updated successfully, but these errors were encountered: