mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 06:12:51 +00:00
release-it stuff
This commit is contained in:
@@ -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 that’s 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;
|
||||
|
||||
Reference in New Issue
Block a user