This repository has been archived by the owner on May 20, 2024. It is now read-only.
Bump @types/node from 20.11.24 to 20.11.25 (#151) #33
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
name: Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: self-hosted | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm i | |
- name: Create .env | |
run: echo "${{secrets.ENV_PRODUCTION}}" > .env | |
- name: Generate prisma | |
run: npx prisma generate | |
- name: Build project | |
run: pnpm build | |
- name: Restart service | |
run: pm2 restart spito-backend || pm2 start dist/main.js --name spito-backend | |