Skip to content

Commit

Permalink
ci: fixed deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
anmostovoy committed Jan 21, 2020
1 parent f4e64cb commit 6169ea2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,5 @@ jobs:
tags: true
provider: script
skip_cleanup: true
script: |
echo "Deploying to npm (node $(node -v), TZ $TZ)"
date +'%D %T %:z (%Z)'
node scripts/prepare-for-npm
sh scripts/deploy.sh $TRAVIS_TAG
script: sh scripts/deploy.sh $TRAVIS_TAG

3 changes: 3 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/sh

echo "Deploy for tag: '$1'";
date +'%D %T %:z (%Z)'
node scripts/prepare-for-npm

if echo "$1" | grep -Eq "^v[0-9]+\.[0-9]+\.[0-9]+$"
then
npm publish ./npm;
Expand Down

0 comments on commit 6169ea2

Please sign in to comment.