forked from velog-io/velog
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 984 Bytes
/
velog-cron-build.yml
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
name: Velog cron build workflow
on:
pull_request:
branches: ['main', 'development', 'hotfix']
paths:
- 'packages/velog-cron/**'
- '.github/workflows/velog-server-build.yml'
jobs:
server-build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.11.1]
defaults:
run:
working-directory: './packages/velog-cron'
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.6.12
- name: Setup Node.js v${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install
- run: pnpm prisma:copy
- run: npx prisma generate
- run: pnpm ssm pull -e stage
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- run: pnpm build