-
Notifications
You must be signed in to change notification settings - Fork 6
/
.release-it.js
58 lines (56 loc) · 1.68 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
"use strict";
const releaseItConfig = {
verbose: false,
force: false,
isDryRun: false,
git: {
changelog: 'git log --pretty=format:"* %s (%h)" ${latestTag}...HEAD',
requireCleanWorkingDir: true,
addUntrackedFiles: false,
requireBranch: false,
requireUpstream: true,
requireCommits: false,
commit: true,
commitMessage: "chore(release): release ${version}",
commitArgs: "",
tag: true,
tagName: "v${version}",
tagAnnotation: "Release",
tagArgs: [],
push: true,
pushArgs: "--follow-tags",
pushRepo: "origin",
},
// reference: https://github.com/release-it/release-it/blob/master/docs/github-releases.md
github: {
release: true,
releaseName: "v${version}",
//releaseNotes: null, // Use the default release notes of git.changelog
},
npm: {
publish: false,
},
hooks: {
"before:init": [],
"after:bump": [],
"after:git:release": [],
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}.",
},
plugins: {
/**
* Make sure to update the version in version.txt
* Reference: https://github.com/release-it/bumper
*/
"@release-it/bumper": {
/**
* version.txt has the 'main' version (single source of truth for the current version)
*/
in: "version.txt",
/**
* The updated version number is saved to those files (in addition to package.json)
*/
out: ["version.txt"],
},
},
};
module.exports = releaseItConfig;