diff --git a/package.json b/package.json index 0153f8014..f6242a868 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@polkadot/util", - "version": "0.2.1", + "version": "0.3.0", "description": "A collection of useful utilities for @polkadot", - "main": "lib/index.js", + "main": "index.js", "keywords": [ "Polkadot" ], diff --git a/scripts/travis.sh b/scripts/travis.sh index 5ca9987cb..495bab925 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -38,16 +38,19 @@ if [ -n "$(git status --untracked-files=no --porcelain)" ]; then git commit -m "[CI Skip] Build artifacts" fi +echo "Incrementing package version" + +npm --no-git-tag-version version +npm version patch -m "[CI Skip] Version bump" +git push --quiet origin HEAD:refs/heads/$TRAVIS_BRANCH > /dev/null 2>&1 + echo "Publishing to npm" npm run ci:makeshift -npm --no-git-tag-version version -npm version patch -m "[CI Skip] Version bump" +cp LICENSE package.json package-lock.json lib/ +cd lib npm publish - -echo "Final push to GitHub" - -git push --quiet origin HEAD:refs/heads/$TRAVIS_BRANCH > /dev/null 2>&1 +cd .. echo "Release completed"