forked from Automattic/gravatar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.release-it.json
31 lines (31 loc) · 958 Bytes
/
.release-it.json
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
{
"$schema": "https://unpkg.com/release-it@17/schema/release-it.json",
"git": {
"requireBranch": "trunk",
"requireCleanWorkingDir": false,
"commitMessage": "chore: release ${name} v${version}",
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/main/templates/changelog-compact.hbs",
"tagName": "hovercards-${version}"
},
"github": {
"release": true,
"releaseName": "Release ${name} ${version}",
"assets": [ "release/hovercards.zip" ]
},
"npm": {
"publish": true
},
"hooks": {
"before:init": [
"git pull",
"npm install",
"npm run build",
"npm run clean:release",
"mkdir -p release/hovercards",
"cp -r dist/* release/hovercards",
"(cd release; zip -r hovercards.zip hovercards/*)"
],
"after:bump": "npx auto-changelog -p",
"after:release": "echo 🎉 Successfully released ${name} v${version} to ${repo.repository}."
}
}