-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathbuildspec.yml
More file actions
30 lines (28 loc) · 607 Bytes
/
buildspec.yml
File metadata and controls
30 lines (28 loc) · 607 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
version: 0.2
env:
variables:
NODE_ENV: production
DISABLE_OPENCOLLECTIVE: true
SAM_CLI_TELEMETRY: 0
phases:
install:
runtime-versions:
nodejs: 24
pre_build:
commands:
- NODE_ENV=development npm ci
- npm audit --audit-level=moderate
- npm run lint
build:
commands:
- npm run build
post_build:
commands:
- bash -c "if [ /"$CODEBUILD_BUILD_SUCCEEDING/" == /"0/" ]; then exit 1; fi" # check if build was successful. exit otherwise.
- npm run deploy
artifacts:
files:
- .aws-sam/**/*
cache:
paths:
- "/root/.npm/**/*"