mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Tools: Command to merge release version update
This commit is contained in:
parent
cfd5416b73
commit
f24750f7b4
@ -1,4 +1,4 @@
|
||||
import { execCommand2, githubRelease, gitPullTry, rootDir } from './tool-utils';
|
||||
import { execCommand2, gitCurrentBranch, githubRelease, gitPullTry, rootDir } from './tool-utils';
|
||||
|
||||
const appDir = `${rootDir}/packages/app-desktop`;
|
||||
|
||||
@ -27,10 +27,12 @@ async function main() {
|
||||
console.info('Release options: ', releaseOptions);
|
||||
|
||||
const release = await githubRelease('joplin', tagName, releaseOptions);
|
||||
const currentBranch = await gitCurrentBranch();
|
||||
|
||||
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}`);
|
||||
console.info(`To merge the version update: git checkout dev && git mergeff ${currentBranch} && git push && git checkout ${currentBranch}`);
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
|
@ -335,6 +335,11 @@ export async function gitPullTry(ignoreIfNotBranch = true) {
|
||||
}
|
||||
}
|
||||
|
||||
export const gitCurrentBranch = async (): Promise<string> => {
|
||||
const output = await execCommand2('git rev-parse --abbrev-ref HEAD', { quiet: true });
|
||||
return output.trim();
|
||||
};
|
||||
|
||||
export async function githubUsername(email: string, name: string) {
|
||||
const cache = await loadGitHubUsernameCache();
|
||||
const cacheKey = `${email}:${name}`;
|
||||
|
Loading…
Reference in New Issue
Block a user