Skip to content

Commit

Permalink
Merge pull request #70 from oliverroick/travis-release
Browse files Browse the repository at this point in the history
Resolve #60 -- Have TravisCI release to NPM
  • Loading branch information
oliverroick authored Jan 26, 2019
2 parents 67fad88 + 06e2c58 commit 483ef1a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,27 @@ jobs:
- stage: Lint
node_js: "10"
script: npm run lint
- stage: NPM release
if: tag IS PRESENT
repo: oliverroick/Leaflet.Deflate
node_js: "10"
script:
- npm run dist
skip_cleanup: true
before_deploy:
- PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
- echo $PACKAGE_VERSION
- |
if [[ "$PACKAGE_VERSION" != "$TRAVIS_TAG" ]]; then
echo "Git and NPM versions do not match. Have you updated package.json?"
exit 1
fi;
deploy:
provider: npm
email:
secure: aux4It7cNWlCTlzCpPSeN+9Bnb3UoootwCvmPMaI6Ph3CQ2SR0s/h/GGrQWDR4d3JciAD900wO8NsufEQEh3v70mouheCQH29DcR0m7AWSfClIccWFeAryTrBETIMYYBSaDMPPgDhBC/gqLxLbtKHer/8Nf3mkZnuwleu6el5vo=
api_key:
secure: fA5fkaReEVVR9iXM2BrLU4prTF2QbcDrUKfKvCe/XL0ByspZTxm3N9ETz6RqQKcKAO9UFCG88slookW2V9XXDPFyc5glPAzDTAu8yJr0ft4iR2zj54yWm6VILb+d1TM+liMA3lGzIpoJe6JX0iVrSJ0MgtHgbQrOXR44uV4UZTg=
on:
tags: true
repo: oliverroick/Leaflet.Deflate
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Leaflet.Deflate",
"author": "Oliver Roick",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "Deflates lines and polygons to a marker when their screen size becomes too small in lower zoom levels.",
"license": "Apache-2.0",
"repository": "git://github.com/oliverroick/Leaflet.Deflate",
Expand Down

0 comments on commit 483ef1a

Please sign in to comment.