-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuildspec.yaml
34 lines (32 loc) · 952 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
version: 0.2
env:
secrets-manager:
NPM_TOKEN: /CodeBuild/vivocha-monorepo:NPM_TOKEN
DOCKER_USER: /CodeBuild/vivocha-monorepo:DOCKER_USER
DOCKER_PASSWORD: /CodeBuild/vivocha-monorepo:DOCKER_PASSWORD
GH_TOKEN: /CodeBuild/vivocha-monorepo:GH_TOKEN
COVERALLS_REPO_TOKEN: /CodeBuild/COVERALLS_REPO_TOKEN_ARREST:COVERALLS_REPO_TOKEN_ARREST
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 16
- 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
build:
commands:
- npm run build:all
- npm run cover
- npm run check-coverage
post_build:
commands:
- npm run semantic-release
- npm run report-coverage