-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodebuild.yaml
More file actions
51 lines (44 loc) · 981 Bytes
/
codebuild.yaml
File metadata and controls
51 lines (44 loc) · 981 Bytes
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
# AWS CodeBuild configuration for CI/CD
version: 0.2
env:
shell: bash
variables:
NODE_ENV: production
PNPM_VERSION: '10.28.0'
phases:
install:
runtime-versions:
nodejs: 22
commands:
- echo "Installing pnpm..."
- npm install -g pnpm@$PNPM_VERSION
- echo "Installing dependencies..."
- pnpm install --frozen-lockfile
pre_build:
commands:
- echo "Running type checks..."
- pnpm typecheck
- echo "Running linter..."
- pnpm lint || true
build:
commands:
- echo "Building packages..."
- pnpm build
- echo "Synthesizing CDK..."
- pnpm cdk:synth
post_build:
commands:
- echo "Build completed successfully"
artifacts:
files:
- '**/*'
exclude-paths:
- node_modules/**/*
- .git/**/*
- '**/cdk.out/**/*'
cache:
paths:
- node_modules/**/*
- libs/**/node_modules/**/*
- apps/**/node_modules/**/*
- infra/cdk/node_modules/**/*