-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable Travis * Update .travis.yml Remove local variable and npm email
- Loading branch information
Marcos Vinícius Rubido
authored
May 9, 2019
1 parent
ccac475
commit 9a5b054
Showing
1 changed file
with
32 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,32 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "node" | ||
- "lts/*" | ||
|
||
env: | ||
global: | ||
- REPO_VERSION="$(npx -c 'echo "$npm_package_version"')" | ||
|
||
before_install: | ||
- echo "REPO_VERSION=$REPO_VERSION" | ||
|
||
before_script: | ||
- npm run lint | ||
|
||
before_deploy: | ||
- | | ||
if [ "$TRAVIS_BRANCH" == "master" ]; then | ||
git tag -a -f "$REPO_VERSION" | ||
echo "New Tag $(git describe --tags)"; | ||
fi | ||
deploy: | ||
- provider: releases | ||
api_key: $GITHUB_TOKEN | ||
on: | ||
branch: master | ||
- provider: npm | ||
api_key: $NPM_API_KEY | ||
on: | ||
tags: true |