diff --git a/increaseVersion.ts b/increaseVersion.ts index da8ec31..99e26df 100755 --- a/increaseVersion.ts +++ b/increaseVersion.ts @@ -6,10 +6,10 @@ const path = require("path"); function incrementVersion(version) { let [major, minor, patch] = version.split(".").map(Number); patch += 1; - if (patch >= 10) { + if (patch >= 999) { patch = 0; minor += 1; - if (minor >= 10) { + if (minor >= 999) { minor = 0; major += 1; } diff --git a/package.json b/package.json index 7565a1c..e7eb41d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mlModelSaver", - "version": "1.0.6", + "version": "1.0.7", "description": "Make life easier for save and serving ml models", "main": "index.js", "repository": "git@github.com:smartdev-ca/mlModelSaver.git", diff --git a/releaseNewVersionAndAddTag.sh b/releaseNewVersionAndAddTag.sh index 18b2b93..525d66c 100755 --- a/releaseNewVersionAndAddTag.sh +++ b/releaseNewVersionAndAddTag.sh @@ -5,6 +5,9 @@ new_version=$(node -p "require('./package.json').version") +rm -rf build +rm -rf dist + python setup.py sdist bdist_wheel twine upload dist/* diff --git a/setup.py b/setup.py index a021bb1..5417575 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='mlModelSaver', - version='1.0.6', + version='1.0.7', packages=find_packages(), description='Make life easier for saving and serving ML models', long_description=open('README.md').read(), # Assumes you have a README.md file