Last active
February 5, 2020 21:10
-
-
Save constgen/9761ff31daa2a94a476e18bfb3a2710d to your computer and use it in GitHub Desktop.
Travis NPM publishing
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
os: linux | |
language: node_js | |
node_js: | |
- "8" | |
install: | |
- npm install | |
cache: | |
directories: | |
- node_modules | |
script: | |
- npm test | |
- npm run build | |
notifications: | |
email: | |
on_pull_requests: false | |
on_success: change | |
on_failure: change | |
deploy: | |
edge: true | |
provider: npm | |
api_token: "$NPM_TOKEN" | |
cleanup: false | |
access: public | |
on: | |
tags: true | |
branch: master |
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
"publishConfig": { | |
"access": "public" | |
}, | |
"files": [ | |
"dist/*", | |
"README.md", | |
"LICENSE", | |
"package.json" | |
], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment