Commit 4add5a2d authored by Victor's avatar Victor

Circleci publishing

parent 1f7c2ef1
version: 2
jobs:
deploy:
machine:
enabled: true
steps:
- checkout
- deploy:
command: |
export PACKAGE_EXISTS="$(npm info robots-txt-parse@$(npm run -s version) version)"
echo "Existing version: ${PACKAGE_EXISTS}"
if [ "${CIRCLE_BRANCH}" == "master" ] && [ "${PACKAGE_EXISTS}" == "undefined" ]; then
echo "Publishing..."
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment