Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ machine:
dependencies:
cache_directories:
- "~/.cache/yarn"
- "~/ghr"

override:
- which node
Expand All @@ -22,14 +21,6 @@ dependencies:

- yarn install

# setup ghr
- >
if [[ ! -e ~/ghr ]]; then
curl -L --create-dirs -o ~/ghr/ghr.zip https://github.com/tcnksm/ghr/releases/download/v0.5.0/ghr_v0.5.0_linux_amd64.zip;
unzip ~/ghr/ghr.zip -d ~/ghr
fi
- sudo ln -sF ~/ghr/ghr /usr/local/bin/ghr

test:
override:
- node -v
Expand All @@ -49,12 +40,14 @@ deployment:
tag: /v[0-9]+(\.[0-9]+)*/
owner: yarnpkg
commands:
- ~/ghr/ghr -prerelease --username yarnpkg --repository yarn --token $KPM_CIRCLE_RELEASE_TOKEN v$(dist/bin/yarn --version) artifacts/
- curl https://nightly.yarnpkg.com/sign_releases?token=$SIGN_TOKEN
# Only NPM is handled here - All other release files are handled in a webhook.
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- ./scripts/set-installation-method.js "`pwd`/package.json" npm
- npm publish --tag rc

notify:
webhooks:
- url: https://nightly.yarnpkg.com/api/archive_circleci
# Handles uploading stable/RC releases to GitHub
- url: https://nightly.yarnpkg.com/release_circleci
# Handles archiving all builds onto the nightly build site
- url: https://nightly.yarnpkg.com/archive_circleci