Files
yarn/circle.yml
2016-10-13 13:03:55 +01:00

35 lines
1.3 KiB
YAML

general:
branches:
ignore:
- gh-pages
artifacts:
- "artifacts/"
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
- ./scripts/bootstrap-env-ubuntu.sh
test:
override:
- node -v
- 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