forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
28 lines (27 loc) · 990 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
general:
branches:
ignore:
- gh-pages
dependencies:
override:
- nvm install 6
- nvm use 6 && nvm alias default 6
- which node
# TODO test yarn with node_modules installed via npm2, npm3 and latest stable yarn
- npm install
- go get github.com/tcnksm/ghr
test:
override:
- node -v
- npm run test-ci
- npm run check-lockfile
- npm run build-dist
- node ./scripts/build-webpack.js
deployment:
release:
tag: /v[0-9]+(\.[0-9]+)*/
owner: yarnpkg
commands:
- ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) dist/yarn-v*.tar.gz
- ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) dist/yarn-$(node dist/bin/yarn --version).js
- ghr --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(node dist/bin/yarn --version) dist/yarn-legacy-$(node dist/bin/yarn --version).js