Commit 25d8e389 authored by Victor's avatar Victor

Last fixes

parent fa80057c
......@@ -9,9 +9,9 @@ jobs:
- run: npm test
- deploy:
command: |
export PACKAGE_EXISTS="$(npm info capture-har@$(npm run -s version) version)"
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
if [[ $CIRCLE_BRANCH == "master" && ! $PACKAGE_EXISTS ]]; then
echo "Publishing..."
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish
......
......@@ -9,7 +9,8 @@
},
"scripts": {
"test": "mocha -R spec ./test",
"test-watch": "mocha -w -R spec ./test"
"test-watch": "mocha -w -R spec ./test",
"version": "echo $npm_package_version"
},
"author": "Jan Potoms",
"license": "MIT",
......
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