Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mario8705 authored Oct 17, 2023
1 parent 786f92f commit 8fef756
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ "main" ]

jobs:
build:
build_frontend:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -37,3 +37,34 @@ jobs:
with:
name: frontend-data
path: frontend/dist

build_backend:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
cache: 'pnpm'
cache-dependency-path: backend/pnpm-lock.yaml
node-version: 18.x

- name: Install dependencies
working-directory: backend/
run: pnpm i --frozen-lockfile

- name: Build
working-directory: backend/
run: pnpm run build

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: backend-data
path: backend/dist

0 comments on commit 8fef756

Please sign in to comment.