Files
yarn/circle.yml
Konstantin Raev 145cd0a4b4 Added yarn install to circle.yml (#1157)
* Added yarn install to circle.yml
2016-10-17 13:46:24 +01:00

50 lines
1.5 KiB
YAML

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
# https://github.com/yarnpkg/yarn/issues/1142, /usr/bin/node is not available in ubuntu
- node $(which 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$(node dist/bin/yarn --version) artifacts/
# TODO(#548): All artifacts should come from artifacts/ directory
- ./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
- npm publish