Skip to content

Commit

Permalink
Tools: Fixed CLI release
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Aug 16, 2021
1 parent bee6001 commit 8c93a89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/app-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/app-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"owner": "Laurent Cozic"
},
"version": "2.3.0",
"version": "2.3.1",
"bin": {
"joplin": "./main.js"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/tools/release-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/');
Expand Down

0 comments on commit 8c93a89

Please sign in to comment.