mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
Tools: Minor tweaks on desktop release script
This commit is contained in:
parent
ad34cee234
commit
df1df6dc1f
@ -1683,6 +1683,9 @@ packages/server/src/utils/uuidgen.js.map
|
||||
packages/tools/lerna-add.d.ts
|
||||
packages/tools/lerna-add.js
|
||||
packages/tools/lerna-add.js.map
|
||||
packages/tools/release-electron.d.ts
|
||||
packages/tools/release-electron.js
|
||||
packages/tools/release-electron.js.map
|
||||
packages/tools/release-server.d.ts
|
||||
packages/tools/release-server.js
|
||||
packages/tools/release-server.js.map
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1671,6 +1671,9 @@ packages/server/src/utils/uuidgen.js.map
|
||||
packages/tools/lerna-add.d.ts
|
||||
packages/tools/lerna-add.js
|
||||
packages/tools/lerna-add.js.map
|
||||
packages/tools/release-electron.d.ts
|
||||
packages/tools/release-electron.js
|
||||
packages/tools/release-electron.js.map
|
||||
packages/tools/release-server.d.ts
|
||||
packages/tools/release-server.js
|
||||
packages/tools/release-server.js.map
|
||||
|
@ -1,40 +0,0 @@
|
||||
'use strict';
|
||||
const __awaiter = (this && this.__awaiter) || function(thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function(resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator['throw'](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
const tool_utils_1 = require('./tool-utils');
|
||||
const appDir = `${tool_utils_1.rootDir}/packages/app-desktop`;
|
||||
function main() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield tool_utils_1.gitPullTry(false);
|
||||
const argv = require('yargs').argv;
|
||||
process.chdir(appDir);
|
||||
console.info(`Running from: ${process.cwd()}`);
|
||||
const version = (yield tool_utils_1.execCommand2('npm version patch')).trim();
|
||||
const tagName = version;
|
||||
console.info(`New version number: ${version}`);
|
||||
console.info(yield tool_utils_1.execCommand2('git add -A'));
|
||||
console.info(yield tool_utils_1.execCommand2(`git commit -m "Desktop release ${version}"`));
|
||||
console.info(yield tool_utils_1.execCommand2(`git tag ${tagName}`));
|
||||
console.info(yield tool_utils_1.execCommand2('git push && git push --tags'));
|
||||
const releaseOptions = { isDraft: true, isPreRelease: !!argv.beta };
|
||||
console.info('Release options: ', releaseOptions);
|
||||
const release = yield tool_utils_1.githubRelease('joplin', tagName, releaseOptions);
|
||||
console.info(`Created GitHub release: ${release.html_url}`);
|
||||
console.info('GitHub release page: https://github.com/laurent22/joplin/releases');
|
||||
console.info(`To create changelog: node packages/tools/git-changelog.js ${version}`);
|
||||
});
|
||||
}
|
||||
main().catch((error) => {
|
||||
console.error('Fatal error');
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
});
|
||||
// # sourceMappingURL=release-electron.js.map
|
@ -16,10 +16,11 @@ async function main() {
|
||||
|
||||
console.info(`New version number: ${version}`);
|
||||
|
||||
console.info(await execCommand2('git add -A'));
|
||||
console.info(await execCommand2(`git commit -m "Desktop release ${version}"`));
|
||||
console.info(await execCommand2(`git tag ${tagName}`));
|
||||
console.info(await execCommand2('git push && git push --tags'));
|
||||
await execCommand2('git add -A');
|
||||
await execCommand2(`git commit -m "Desktop release ${version}"`);
|
||||
await execCommand2(`git tag ${tagName}`);
|
||||
await execCommand2('git push');
|
||||
await execCommand2('git push --tags');
|
||||
|
||||
const releaseOptions = { isDraft: true, isPreRelease: !!argv.beta };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user