-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (49 loc) · 1.31 KB
/
build-packages-api.yml
File metadata and controls
58 lines (49 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build API Package
on:
workflow_dispatch:
push:
branches:
- main
- develop
paths:
- '.github/workflows/build-packages-api.yml'
- 'packages/db/**'
- 'packages/api/**'
- 'packages/config/eslint/**'
- 'packages/config/tsconfig/**'
pull_request:
branches:
- main
- develop
paths:
- '.github/workflows/build-packages-api.yml'
- 'packages/db/**'
- 'packages/api/**'
- 'packages/config/eslint/**'
- 'packages/config/tsconfig/**'
jobs:
build:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2.2.2
with:
version: 7.9.5
- name: Install database dependencies
run: pnpm --filter @acme/db install
- name: Generate prisma client
run: pnpm --filter @acme/db generate
- name: Install dependencies
run: pnpm --filter @acme/api install
- name: Lint
run: pnpm --filter @acme/api lint
- name: Build
run: pnpm --filter @acme/api build