-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy path.release-it-web-ext.json
More file actions
38 lines (38 loc) · 1.34 KB
/
.release-it-web-ext.json
File metadata and controls
38 lines (38 loc) · 1.34 KB
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
{
"$schema": "./node_modules/release-it/schema/release-it.json",
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "conventionalcommits"
},
"ignoreRecommendedBump": true
},
"@release-it/bumper": {
"in": "apps/jetstream-web-extension/src/manifest.json",
"out": "apps/jetstream-web-extension/src/manifest.json"
}
},
"git": {
"changelog": "git log --pretty=format:\"* %s (%h)\" $(git describe --tags --abbrev=0 --match='web-ext-v*' 2>/dev/null || echo '')...${to}",
"tagAnnotation": "Release web extension ${version}",
"commitMessage": "chore: release web extension ${version}",
"tag": true,
"tagName": "web-ext-v${version}",
"requireBranch": ["main", "hotfix/*"]
},
"npm": false,
"github": {
"release": true,
"releaseName": "Jetstream Web Extension ${version}"
},
"hooks": {
"before:init": "if [ \"$CI\" != \"true\" ]; then echo 'Local releases are disabled; run releases via CI only.'; exit 1; fi",
"after:bump": [
"npx prettier --write apps/jetstream-web-extension/src/manifest.json",
"yarn build:web-extension",
"version=v${version} yarn build:web-extension:zip",
"version=v${version} yarn build:web-extension:upload --accept-all"
],
"after:release": "echo Successfully released ${name} v${version}."
}
}