forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
45 lines (37 loc) · 933 Bytes
/
circle.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
general:
branches:
ignore:
- gh-pages
artifacts:
- "artifacts/"
machine:
node:
version: 6
dependencies:
cache_directories:
- "~/.yarn-cache"
override:
- which node
# install dependencies
- ./scripts/bootstrap-env-ubuntu.sh
- yarn install
# setup ghr
- curl -L -o ghr.zip https://github.com/tcnksm/ghr/releases/download/v0.5.0/ghr_v0.5.0_linux_amd64.zip
- unzip ghr.zip
test:
override:
- node -v
- npm run lint
- npm run test-ci
- npm run check-lockfile
- npm run build-dist
- node ./scripts/build-webpack.js
- ./scripts/build-deb.sh
deployment:
release:
tag: /v[0-9]+(\.[0-9]+)*/
owner: yarnpkg
commands:
- ./ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(dist/bin/yarn --version) artifacts/
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- npm publish