-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #536 from ertush/hotfix
Updated the github/workflows/ci.yml to include node versions 18.x or …
- Loading branch information
Showing
1 changed file
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|
||
|
||
|