Skip to content
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

Bump @types/node from 20.11.24 to 20.11.25 (#151)

Bump @types/node from 20.11.24 to 20.11.25 (#151) #33

Workflow file for this run

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