Skip to content

Commit

Permalink
Add: npm publish to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
psi-4ward committed Apr 14, 2020
1 parent 1a02f9a commit 0416844
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Empty file modified app.js
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('./app');
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "psitransfer",
"version": "1.3.2",
"version": "0.0.0",
"description": "Simple open source self-hosted file sharing solution",
"keywords": [
"share",
Expand All @@ -26,6 +26,9 @@
"tusboy": "^1.1.1",
"uuid": "^3.3.2"
},
"bin":{
"psitransfer": "cli.js"
},
"devDependencies": {},
"scripts": {
"start": "NODE_ENV=production node app.js",
Expand Down
1 change: 1 addition & 0 deletions scripts/create-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ tar -czf _releases/psitransfer-$NAME.tar.gz --transform "s~^~psitransfer-$NAME/~
Dockerfile \
.dockerignore \
app.js \
cli.js \
config.js \
package.json \
package-lock.json \
Expand Down

0 comments on commit 0416844

Please sign in to comment.