Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kangood committed May 24, 2024
1 parent 76cd29e commit dab2bfc
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,12 @@ jobs:

- name: Build Next.js app
run: pnpm build

- name: Check pnpm and pm2 installation1
run: |
echo $(which pnpm)
echo $(which pm2)
- name: Install pnpm and pm2

- name: Install pm2
run: |
npm install -g pnpm
npm install -g pm2
- name: Check pnpm and pm2 installation2
- name: Check pnpm and pm2 installation
run: |
echo $(which pnpm)
echo $(which pm2)
Expand All @@ -51,5 +45,6 @@ jobs:
bash -l {0}
cd /home/project/blog-web
git pull origin master
pnpm install --production
pm2 restart blog-web
/home/runner/setup-pnpm/node_modules/.bin/pnpm install --production
/opt/hostedtoolcache/node/18.18.0/x64/bin/pm2 restart blog-web

0 comments on commit dab2bfc

Please sign in to comment.