-
Notifications
You must be signed in to change notification settings - Fork 16
/
.release-it.js
28 lines (28 loc) · 1.06 KB
/
.release-it.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// refer: https://github.com/release-it/release-it/tree/master/docs
module.exports = {
git: {
requireBranch: 'main',
commitMessage: 'chore: Release v${version}',
tagName: 'v${version}',
requireCommits: true, // require commits since last tag
requireCleanWorkingDir: true, // exits if local not upto date with remote or if workdir is unclean
},
github: {
release: true, // creates a github release
draft: true, // github releases are only drafted, confirm the draft in github releases page to publish it
commitArgs: ['-S'], // creates gpg signed commits
tagArgs: ['-s'], // creates gpg signed tags
releaseName: '✨ v${version}',
assets: ['tar/*.tgz'],
},
npm: {
publish: true,
},
hooks: {
// runs lint before releasing
'before:init': ['pnpm lint'],
// build the package and generate a tarball for use in github releases
'after:bump': 'pnpm build && pnpm tarball',
'after:release': 'echo Successfully created a release v${version} for ${repo.repository}. Please add release notes and publish it!',
},
};