Add: npm publish to travis

This commit is contained in:
Christoph Wiechert
2020-04-14 11:27:02 +02:00
parent 1a02f9a339
commit 041684408b
5 changed files with 16 additions and 1 deletions

View File

@@ -14,12 +14,21 @@ before_deploy:
Dockerfile \
.dockerignore \
app.js \
cli.js \
config.js \
package.json \
package-lock.json \
docs \
lib \
public
# npm deploy
- >
if [ -n "$TRAVIS_TAG" ] ; then
mkdir _pkg; cd _pkg; tar xzf ../psitransfer-$TRAVIS_TAG.tar.gz ;
npm set //registry.npmjs.org/:_authToken $NPM_API_TOKEN ;
npm publish;
cd .. ;
fi
deploy:
provider: releases