1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Tools: Auto-create iOS changelog

This commit is contained in:
Laurent Cozic 2021-12-16 17:10:17 +01:00
parent 586542e15e
commit f761e9021b
2 changed files with 4 additions and 8 deletions

View File

@ -1,5 +1,5 @@
import * as fs from 'fs-extra';
import { execCommand2, rootDir, gitPullTry } from './tool-utils';
import { rootDir, gitPullTry, completeReleaseWithChangelog } from './tool-utils';
const { unique } = require('@joplin/lib/ArrayUtils');
const mobileDir = `${rootDir}/packages/app-mobile`;
@ -72,13 +72,8 @@ async function main() {
const tagName = `ios-v${newVersion}`;
console.info(`Tag name: ${tagName}`);
await execCommand2('git add -A');
await execCommand2(`git commit -m "${tagName}"`);
await execCommand2(`git tag ${tagName}`);
await execCommand2('git push');
await execCommand2('git push --tags');
console.info(`To create changelog: node packages/tools/git-changelog.js ${tagName}`);
const changelogPath = `${rootDir}/readme/changelog_ios.md`;
await completeReleaseWithChangelog(changelogPath, newVersion, tagName, 'iOS', false);
}
main().catch((error) => {

1
readme/changelog_ios.md Normal file
View File

@ -0,0 +1 @@
# Joplin iOS app changelog