Skip to content

Commit

Permalink
Manueliglesias patch 2 (#911)
Browse files Browse the repository at this point in the history
* Update config.yml
  • Loading branch information
manueliglesias authored May 24, 2018
1 parent 7fe18b6 commit dd9c963
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@ jobs:
- run: yarn run test --scope aws-amplify
- run: yarn run test --scope aws-amplify-react
- run: yarn run coverage
- run: git config --global user.email $GITHUB_EMAIL
- run: git config --global user.name $GITHUB_USER
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run:
name: "Publish to Amplify Package"
command: |
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
git config --global user.email $GITHUB_EMAIL
git config --global user.name $GITHUB_USER
yarn run publish:$CIRCLE_BRANCH
else
echo "Skipping deploy."
fi
- run:
command: git push --follow-tags
when: on_fail
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"clean": "lerna run -- clean",
"format": "lerna run -- format",
"lint": "lerna run -- lint",
"publish:master": "lerna publish --conventional-commits --cd-version=prerelease --yes --independent --npm-tag=unstable --preid=unstable --force-publish $(ls packages/)",
"publish:beta": "lerna publish --conventional-commits --yes --independent --npm-tag=beta",
"publish:release": "lerna publish --conventional-commits --yes --independent"
"publish:master": "lerna publish --conventional-commits --cd-version=prerelease --yes --independent --npm-tag=unstable --preid=unstable --force-publish $(ls packages/) --message 'Publish [ci skip]'",
"publish:beta": "lerna publish --conventional-commits --yes --independent --npm-tag=beta --message 'Publish [ci skip]'",
"publish:release": "lerna publish --conventional-commits --yes --independent --message 'Publish [ci skip]'"
},
"pre-commit": [
"pre-commit"
Expand Down

0 comments on commit dd9c963

Please sign in to comment.