mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 06:12:51 +00:00
40 lines
983 B
TypeScript
40 lines
983 B
TypeScript
import { type Config } from 'release-it';
|
||
|
||
export default {
|
||
npm: { publish: false, ignoreVersion: true },
|
||
|
||
git: {
|
||
requireCleanWorkingDir: true,
|
||
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,
|
||
releaseName: '${npm.name} v${version}',
|
||
assets: [
|
||
'android/app/build/outputs/apk/release/app-release.apk',
|
||
// or the AAB, if that’s your primary store artifact:
|
||
// 'android/app/build/outputs/bundle/release/app-release.aab'
|
||
],
|
||
},
|
||
|
||
plugins: {
|
||
'@release-it/conventional-changelog': {
|
||
preset: 'conventionalcommits',
|
||
infile: 'CHANGELOG.md',
|
||
gitRawCommitsOpts: { path: 'apps/mobile' },
|
||
},
|
||
},
|
||
|
||
hooks: {
|
||
'before:init': ['turbo run lint:check'],
|
||
'before:github:release': 'pnpm run build:signed:apk',
|
||
|
||
'after:release': 'echo "Released ${npm.name} v${version}"',
|
||
},
|
||
} satisfies Config;
|