-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yaml
35 lines (33 loc) · 956 Bytes
/
buildspec.yaml
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
version: 0.2
env:
secrets-manager:
NPM_TOKEN: /CodeBuild/vivocha-monorepo:NPM_TOKEN
GH_TOKEN: /CodeBuild/vivocha-monorepo:GH_TOKEN
DOCKER_USER: /CodeBuild/vivocha-monorepo:DOCKER_USER
DOCKER_PASSWORD: /CodeBuild/vivocha-monorepo:DOCKER_PASSWORD
COVERALLS_REPO_TOKEN: /CodeBuild/COVERALLS_REPO_TOKEN:COVERALLS_REPO_TOKEN_DEBUGGO
git-credential-helper: yes
phases:
install:
runtime-versions:
docker: 19
commands:
- echo Logging in to Docker...
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- n 14
- export PATH=$PATH:./node_modules/.bin
- npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
- npm set unsafe-perm true
pre_build:
commands:
- npm prune
- npm i
build:
commands:
- npm run build
- npm run cover
- npm run check-coverage
post_build:
commands:
- npm run semantic-release
- npm run report-coverage