Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Using semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
yehjxraymond committed Jul 24, 2019
1 parent 0c6ebda commit 9ebdb01
Show file tree
Hide file tree
Showing 4 changed files with 6,037 additions and 6,768 deletions.
19 changes: 1 addition & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,7 @@ jobs:
- stage: deploy
if: branch = master AND type != pull_request
script:
- printf -- "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
- npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}";
- if [ "${TRAVIS_BRANCH}" = "master" ] && ! [ `printf -- "${TRAVIS_COMMIT_MESSAGE}" | grep "Publish"` ]; then
git checkout ${TRAVIS_BRANCH};
git reset --hard ${TRAVIS_COMMIT};
git remote set-url origin ${CIVAR_GH_REPOSITORY_URL};
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}";
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
if [ -z "${TRAVIS_COMMIT_MESSAGE##*"[major release]"*}" ]; then
LERNA_CD_VERSION='major';
elif [ -z "${TRAVIS_COMMIT_MESSAGE##*"[minor release]"*}" ]; then
LERNA_CD_VERSION='minor';
else
LERNA_CD_VERSION='patch';
fi;
lerna publish --yes --cd-version ${LERNA_CD_VERSION};
fi;
fi;
- npm run semantic-release
stages:
- test
- deploy
7 changes: 0 additions & 7 deletions lerna.json

This file was deleted.

Loading

0 comments on commit 9ebdb01

Please sign in to comment.