-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuildspec.yml
24 lines (24 loc) · 1.01 KB
/
buildspec.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
version: 0.2
phases:
install:
runtime-versions:
nodejs: 12
commands:
- echo "updating git ..."; apt-get update; apt-get install -y python-software-properties software-properties-common; add-apt-repository ppa:git-core/ppa; apt-get update; apt-get install -y git
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- echo "machine github.com login ${GH_USERNAME} password ${GH_TOKEN}" > ~/.netrc
- npm install -g npm@
- export GK_LOCK_DEFAULT_BRANCH=saga
- npm i -g greenkeeper-lockfile@2
- npx greenkeeper-lockfile-update
- yarn
- node -e 'const {version} = require("./package.json"); if(version !== "0.0.0-development") { console.error("\033[0;31mversion in package.json must be 0.0.0-development, but is " + version + "!\033[0m"); process.exit(1); }'
pre_build:
commands:
- yarn lint
build:
commands:
- yarn build
- npx greenkeeper-lockfile-upload
- yarn add semantic-release
- npx semantic-release || true