Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kangood authored May 24, 2024
1 parent 404cbfa commit 032cbfb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,12 @@ jobs:
run: |
echo $(which pnpm)
echo $(which pm2)
echo $USER
echo $PATH
- name: Install pm2
run: |
npm install -g pm2
- name: Add directory to PATH
run: |
echo "/home/runner/setup-pnpm/node_modules/.bin/pnpm" >> $GITHUB_PATH
echo "/opt/hostedtoolcache/node/18.20.2/x64/bin/pm2" >> $GITHUB_PATH
- name: Check pnpm and pm2 installation
run: |
echo $(which pnpm)
Expand All @@ -53,7 +47,11 @@ jobs:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
script: |
echo $PATH
npm install pnpm
npm install pm2
echo $PATH
cd /home/project/blog-web
git pull origin master
pnpm install --production
Expand Down

0 comments on commit 032cbfb

Please sign in to comment.