Skip to content

Commit

Permalink
Merge pull request #536 from ertush/hotfix
Browse files Browse the repository at this point in the history
Updated the github/workflows/ci.yml to include node versions 18.x or …
  • Loading branch information
ertush authored Nov 18, 2024
2 parents 4254ff4 + 24f6bff commit 15b3c04
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ jobs:
# path: playwright-report/
# retention-days: 30



deploy:
runs-on: [email protected]
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ['18.x', '20.x']

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -64,13 +70,17 @@ jobs:
source ~/.nvm/nvm.sh
if ! [[ -d './.git' ]]; then git init; fi
if ! [[ `git remote -v | awk '{print $1}' | head -n 1` =~ 'origin' ]]; then git remote add origin ${{ github.server_url }}${{ github.username }}/${{ github.repository }}.git; fi
node --version;
git stash
git pull origin main
pnpm install
pnpm run build
pnpm dlx pm2 startOrRestart ecosystem.config.js --env local
pnpm dlx pm2 save
git stash;
git pull origin main;
- name: Install dependencies and build app
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm run build
- run: pnpm dlx pm2 startOrRestart ecosystem.config.js --env local
- run: pnpm dlx pm2 save



Expand Down

0 comments on commit 15b3c04

Please sign in to comment.