Skip to content

Commit

Permalink
Merge pull request #32 from SimonLammer/travis
Browse files Browse the repository at this point in the history
Release as prerelease if major version did not change
  • Loading branch information
Simon Lammer authored May 27, 2018
2 parents 3e08d44 + 11e7c48 commit 786a1fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ deploy:
- minified.js
- script.js
skip_cleanup: true
name: "$VERSION"
prerelease: $([ $(echo $VERSION | sed -r -e 's/v([0-9]+).*/\1/') == $(git describe --tags --abbrev=0 | sed -r -e 's/v([0-9]+).*/\1/') ] && printf 'true' || printf 'false') # false if major version changed, true otherwise
draft: false
on:
repo: SimonLammer/anki-persistence
branch: master
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "anki-persistence",
"version": "0.5.0",
"version": "0.5.1",
"description": "Persist data between both sides of an anki flashcard.",
"main": "script.js",
"directories": {
Expand Down

0 comments on commit 786a1fa

Please sign in to comment.