0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

build: circleci website deployment update

This commit is contained in:
Juan Picado @jotadeveloper 2018-01-13 18:28:07 +01:00
parent b8a027f6af
commit 6b33084285
No known key found for this signature in database
GPG key ID: 18AC54485952D158

View file

@ -6,6 +6,8 @@ machine:
version: 9
dependencies:
pre:
- git config --global user.email "verdacciobot@users.noreply.github.com"
- git config --global user.name "Verdaccio bot 🤖 for Deployments"
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
@ -29,6 +31,8 @@ test:
- yarn run test
- nvm alias default 9
- yarn run test
- echo "machine github.com login verdacciobot password $GITHUB_TOKEN" > ~/.netrc
- cd website && yarn install && GIT_USER=verdacciobot USE_SSH=false yarn run publish-gh-pages
deployment:
production:
tag: /(v)?[0-9]+(\.[0-9]+)*/
@ -42,13 +46,6 @@ deployment:
tag: /.*-beta.*/
commands:
- ./scripts/beta-publish.sh
website:
branch: master
commands:
- git config --global user.email "verdacciobot@users.noreply.github.com"
- git config --global user.name "Verdaccio bot 🤖 for Deployments"
- echo "machine github.com login verdacciobot password $GITHUB_TOKEN" > ~/.netrc
- cd website && yarn install && GIT_USER=verdacciobot USE_SSH=false yarn run publish-gh-pages
general:
branches:
ignore: