Publish minimal to npm (#4)

* Publish minimal to npm

* Update dependency imports

* Update main: index.js
This commit is contained in:
Jaco Greeff
2017-11-19 09:36:39 +01:00
committed by GitHub
parent b13997e875
commit d362f00a25
6 changed files with 20 additions and 17 deletions
+9 -6
View File
@@ -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 src/types.js 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"