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:
parent
586542e15e
commit
f761e9021b
@ -1,5 +1,5 @@
|
|||||||
import * as fs from 'fs-extra';
|
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 { unique } = require('@joplin/lib/ArrayUtils');
|
||||||
|
|
||||||
const mobileDir = `${rootDir}/packages/app-mobile`;
|
const mobileDir = `${rootDir}/packages/app-mobile`;
|
||||||
@ -72,13 +72,8 @@ async function main() {
|
|||||||
const tagName = `ios-v${newVersion}`;
|
const tagName = `ios-v${newVersion}`;
|
||||||
console.info(`Tag name: ${tagName}`);
|
console.info(`Tag name: ${tagName}`);
|
||||||
|
|
||||||
await execCommand2('git add -A');
|
const changelogPath = `${rootDir}/readme/changelog_ios.md`;
|
||||||
await execCommand2(`git commit -m "${tagName}"`);
|
await completeReleaseWithChangelog(changelogPath, newVersion, tagName, 'iOS', false);
|
||||||
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}`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch((error) => {
|
main().catch((error) => {
|
||||||
|
1
readme/changelog_ios.md
Normal file
1
readme/changelog_ios.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Joplin iOS app changelog
|
Loading…
Reference in New Issue
Block a user