From 8c93a89c0aff602bb7ad7df2b8014e7edc4e0288 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 16 Aug 2021 10:37:48 +0100 Subject: [PATCH] Tools: Fixed CLI release --- packages/app-cli/package-lock.json | 4 ++-- packages/app-cli/package.json | 2 +- packages/tools/release-cli.ts | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/app-cli/package-lock.json b/packages/app-cli/package-lock.json index f603a6331..0c4574801 100644 --- a/packages/app-cli/package-lock.json +++ b/packages/app-cli/package-lock.json @@ -1,12 +1,12 @@ { "name": "joplin", - "version": "2.3.0", + "version": "2.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "joplin", - "version": "2.3.0", + "version": "2.3.1", "license": "MIT", "dependencies": { "aws-sdk": "^2.588.0", diff --git a/packages/app-cli/package.json b/packages/app-cli/package.json index d96b410d5..72d38aa5b 100644 --- a/packages/app-cli/package.json +++ b/packages/app-cli/package.json @@ -32,7 +32,7 @@ ], "owner": "Laurent Cozic" }, - "version": "2.3.0", + "version": "2.3.1", "bin": { "joplin": "./main.js" }, diff --git a/packages/tools/release-cli.ts b/packages/tools/release-cli.ts index b2809f663..6b3cd450e 100644 --- a/packages/tools/release-cli.ts +++ b/packages/tools/release-cli.ts @@ -8,11 +8,12 @@ const changelogPath = `${rootDir}/readme/changelog_cli.md`; async function main() { process.chdir(appDir); + await execCommand2('git pull'); + const newVersion = (await execCommand2('npm version patch')).trim(); console.info(`Building ${newVersion}...`); const newTag = `cli-${newVersion}`; - await execCommand2('git pull'); await execCommand2('touch app/main.js'); await execCommand2('npm run build'); await execCommand2('cp ../../README.md build/');