diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 076754e..d6cb6f3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -26,8 +26,5 @@ jobs: cache: 'npm' - run: npm install - run: npm run build - - name: Deploy Application - run: | - pm2 stop nextjs-example || true - pm2 delete nextjs-example || true - pm2 start npm --name nextjs-app -- run start -- -p 3000 + - run: chmod +x ./pm2_runner.sh + - run: bash ./pm2_runner.sh