release-it stuff

This commit is contained in:
EthanShoeDev
2025-10-06 20:12:50 -04:00
parent 3f70c86bd4
commit c61f8ac01c
7 changed files with 123 additions and 13 deletions

View File

@@ -1,25 +1,39 @@
import { type Config } from 'release-it';
export default {
npm: { publish: false, ignoreVersion: true },
git: {
requireCleanWorkingDir: true,
commitMessage: 'chore(release): v${version}',
tagName: 'v${version}',
tagName: '${npm.name}-v${version}',
tagAnnotation: '${npm.name} v${version}',
tagMatch: '${npm.name}-v*',
commitMessage: 'chore(${npm.name}): release v${version}',
push: true,
},
github: {
release: true,
assets: ['android/app/build/outputs/apk/release/app-release.apk'],
releaseName: '${npm.name} v${version}',
assets: [
'android/app/build/outputs/apk/release/app-release.apk',
// or the AAB, if thats your primary store artifact:
// 'android/app/build/outputs/bundle/release/app-release.aab'
],
},
plugins: {
'release-it-pnpm': {},
'@release-it/conventional-changelog': {
preset: 'conventionalcommits',
infile: 'CHANGELOG.md',
gitRawCommitsOpts: { path: 'apps/mobile' },
},
},
hooks: {
'before:init': ['pnpm run lint:check', 'pnpm run typecheck'],
'before:github:release': 'pnpm run build:signed:apk',
'after:release': 'echo "Released ${npm.name} v${version}"',
},
} satisfies Config;