mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 14:22:51 +00:00
release-it stuff
This commit is contained in:
42
packages/react-native-uniffi-russh/.release-it.ts
Normal file
42
packages/react-native-uniffi-russh/.release-it.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
import type { Config } from 'release-it';
|
||||
|
||||
export default {
|
||||
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,
|
||||
},
|
||||
|
||||
// This one *does* publish to npm
|
||||
npm: {
|
||||
publish: true,
|
||||
// pass flags you’d give to `npm publish`
|
||||
publishArgs: ['--access', 'public'],
|
||||
// (optional) skip npm’s own prepublish checks:
|
||||
// skipChecks: true
|
||||
},
|
||||
|
||||
github: {
|
||||
release: true,
|
||||
releaseName: '${npm.name} v${version}',
|
||||
// optional: attach build artifacts
|
||||
// assets: ['dist/**']
|
||||
},
|
||||
|
||||
plugins: {
|
||||
'@release-it/conventional-changelog': {
|
||||
preset: 'conventionalcommits',
|
||||
infile: 'CHANGELOG.md',
|
||||
gitRawCommitsOpts: { path: 'packages/react-native-uniffi-russh' },
|
||||
},
|
||||
},
|
||||
|
||||
hooks: {
|
||||
'before:init': ['pnpm run lint:check', 'pnpm run test'],
|
||||
'before:npm:release': 'pnpm run build',
|
||||
'after:release': 'echo "Published ${npm.name} v${version} to npm"',
|
||||
},
|
||||
} satisfies Config;
|
||||
Reference in New Issue
Block a user