-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# For more options, check: https://circleci.com/docs/config-sample/ | ||
machine: | ||
timezone: | ||
America/Florida | ||
node: | ||
version: 7.5.0 | ||
|
||
# Authenticating to NPM using an existing token obtained from ~/.npmrc | ||
dependencies: | ||
pre: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc | ||
|
||
cache_directories: | ||
- "node_modules" | ||
|
||
test: | ||
pre: | ||
- git remote set-branches --add origin master | ||
- git fetch | ||
- LIST=$(git diff-index --name-only origin/master | grep .*\\.js | grep -v json | grep -v eslint | tr '\n' ' '); if [ "$LIST" ]; then eslint $LIST; fi | ||
# # This should be doing the same as travis, let's avoid triggering this twice for now | ||
# post: | ||
# - npm run cicoverage | ||
# - ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info | ||
# - ./node_modules/.bin/codacy-coverage < ./coverage/lcov.info | ||
# - rm -fr ./coverage | ||
|
||
# run npm publish on tagged commits | ||
# To deploy a new version, simply run: | ||
# npm version 0.0.1 # New version instead of 0.0.1 | ||
# git push --follow-tags | ||
deployment: | ||
npm: | ||
tag: /v[0-9]+(\.[0-9]+)*/ | ||
commands: npm publish |