Publish minimal to npm (#2)
* Publish minimal to npm * Update build script (self-contained)
This commit is contained in:
+2
-2
@@ -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"
|
||||
],
|
||||
|
||||
+9
-6
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user