From bda5c3a0c9f8ad6e9842df3d4d061efc887349cf Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 9 Jan 2019 15:29:01 -0800 Subject: [PATCH] Fix version bump --- script/version_bump.js | 9 +++++---- setup.py | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/script/version_bump.js b/script/version_bump.js index 73ee8fb634..e38ff4dae6 100755 --- a/script/version_bump.js +++ b/script/version_bump.js @@ -10,9 +10,10 @@ function patch(version) { function today() { const now = new Date(); - return `${now.getFullYear()}${now.getMonth() + 1}${String( - now.getDate() - ).padStart(2, "0")}.0`; + return `${now.getFullYear()}${String(now.getMonth() + 1).padStart( + 2, + "0" + )}${String(now.getDate()).padStart(2, "0")}.0`; } const methods = { @@ -51,4 +52,4 @@ async function main(args) { console.log(stdout); } -main(process.argv.slice(2)); +main(process.argv.slice(2)).catch(console.error); diff --git a/setup.py b/setup.py index 448d14ef3b..2e7e3fb2a4 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="home-assistant-frontend", - version="2019109.0", + version="20190109.0", description="The Home Assistant frontend", url="https://github.com/home-assistant/home-assistant-polymer", author="The Home Assistant Authors",