1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Tools: Fixed CLI release

This commit is contained in:
Laurent Cozic 2021-08-16 10:37:48 +01:00
parent bee6001462
commit 8c93a89c0a
3 changed files with 5 additions and 4 deletions

View File

@ -1,12 +1,12 @@
{ {
"name": "joplin", "name": "joplin",
"version": "2.3.0", "version": "2.3.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "joplin", "name": "joplin",
"version": "2.3.0", "version": "2.3.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"aws-sdk": "^2.588.0", "aws-sdk": "^2.588.0",

View File

@ -32,7 +32,7 @@
], ],
"owner": "Laurent Cozic" "owner": "Laurent Cozic"
}, },
"version": "2.3.0", "version": "2.3.1",
"bin": { "bin": {
"joplin": "./main.js" "joplin": "./main.js"
}, },

View File

@ -8,11 +8,12 @@ const changelogPath = `${rootDir}/readme/changelog_cli.md`;
async function main() { async function main() {
process.chdir(appDir); process.chdir(appDir);
await execCommand2('git pull');
const newVersion = (await execCommand2('npm version patch')).trim(); const newVersion = (await execCommand2('npm version patch')).trim();
console.info(`Building ${newVersion}...`); console.info(`Building ${newVersion}...`);
const newTag = `cli-${newVersion}`; const newTag = `cli-${newVersion}`;
await execCommand2('git pull');
await execCommand2('touch app/main.js'); await execCommand2('touch app/main.js');
await execCommand2('npm run build'); await execCommand2('npm run build');
await execCommand2('cp ../../README.md build/'); await execCommand2('cp ../../README.md build/');