forked from jquery/jquery-mousewheel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.release-it.js
33 lines (31 loc) · 998 Bytes
/
.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
"use strict";
module.exports = {
preReleaseBase: 1,
hooks: {
"before:init": "bash ./build/release/pre-release.sh",
"after:version:bump":
"sed -i 's/main\\/AUTHORS.txt/${version}\\/AUTHORS.txt/' package.json",
"after:bump": "cross-env VERSION=${version} npm run build",
"before:git:release": "git add -f dist/ changelog.md",
"after:release": "echo 'Run the following to complete the release:' && " +
"echo './build/release/post-release.sh $\{version}'"
},
git: {
// Use the node script directly to avoid an npm script
// command log entry in the GH release notes
changelog: "node build/release/changelog.mjs ${from} ${to}",
commitMessage: "Release: ${version}",
getLatestTagFromAllRefs: true,
pushRepo: "[email protected]:jquery/jquery-mousewheel.git",
requireBranch: "main",
requireCleanWorkingDir: true
},
github: {
pushRepo: "[email protected]:jquery/jquery-mousewheel.git",
release: true,
tokenRef: "JQUERY_GITHUB_TOKEN"
},
npm: {
publish: true
}
};