Skip to content

Commit 7b48290

Browse files
committed
Add release-it to the build
1 parent cbff71a commit 7b48290

File tree

8 files changed

+2493
-27
lines changed

8 files changed

+2493
-27
lines changed

.release-it.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"hooks": {
3+
"after:bump": [
4+
"pipx run towncrier build --draft --yes --version ${version} > .changelog.draft",
5+
"pipx run towncrier build --yes --version ${version}"
6+
],
7+
"after:release": "rm .changelog.draft"
8+
},
9+
"npm": {
10+
"publish": false
11+
},
12+
"git": {
13+
"commitArgs": ["--no-verify"],
14+
"changelog": "pipx run towncrier build --draft --yes --version 0.0.0",
15+
"requireUpstream": false,
16+
"requireCleanWorkingDir": false,
17+
"commitMessage": "Release mrs-developer ${version}",
18+
"tagName": "${version}",
19+
"tagAnnotation": "Release mrs-developer ${version}"
20+
},
21+
"github": {
22+
"release": true,
23+
"releaseName": "mrs-developer ${version}",
24+
"releaseNotes": "cat .changelog.draft"
25+
}
26+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% if sections[""] %}
2+
{% for category, val in definitions.items() if category in sections[""] %}
3+
### {{ definitions[category]['name'] }}
4+
5+
{% for text, values in sections[""][category].items() %}
6+
- {{ text }} {{ values|join(', ') }}
7+
{% endfor %}
8+
9+
{% endfor %}
10+
{% endif %}

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# mrs-developer Release Notes
2+
3+
<!-- You should *NOT* be adding new change log entries to this file.
4+
You should create a file in the news directory instead.
5+
For helpful instructions, please see:
6+
https://6.docs.plone.org/volto/developer-guidelines/contributing.html#create-a-pull-request
7+
-->
8+
9+
<!-- towncrier release notes start -->
10+
11+
# 2.1.1 (2023-06-05)
12+
13+
- `develop` option to deactivate a package without losing the corresponding configuration [sneridagh]
14+
115
# 2.1.1 (2023-06-05)
216

317
- `develop` option to deactivate a package without losing the corresponding configuration [sneridagh]

news/.gitkeep

Whitespace-only changes.

news/40.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added per repository `output` parameter @sneridagh

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
"main": "src/index.js",
99
"scripts": {
1010
"test": "./node_modules/mocha/bin/_mocha",
11-
"test:debug": "node --inspect-brk ./node_modules/mocha/bin/_mocha"
11+
"test:debug": "node --inspect-brk ./node_modules/mocha/bin/_mocha",
12+
"dry-release": "release-it --dry-run",
13+
"release": "release-it",
14+
"release-major-alpha": "release-it major --preRelease=alpha",
15+
"release-alpha": "release-it --preRelease=alpha"
1216
},
1317
"keywords": [
1418
"multirepo",
@@ -39,6 +43,7 @@
3943
"eslint-prettier": "^0.0.0-empty",
4044
"mocha": "^10.2.0",
4145
"mock-fs": "^4.13.0",
42-
"prettier": "^2.8.0"
46+
"prettier": "^2.8.0",
47+
"release-it": "^17.1.1"
4348
}
4449
}

towncrier.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[tool.towncrier]
2+
filename = "CHANGELOG.md"
3+
directory = "news/"
4+
title_format = "## {version} ({project_date})"
5+
underlines = ["", "", ""]
6+
template = "./.towncrier/towncrier_template.jinja"
7+
start_string = "<!-- towncrier release notes start -->\n"
8+
issue_format = "[#{issue}](https://github.com/plone/volto/issues/{issue})"
9+
10+
[[tool.towncrier.type]]
11+
directory = "breaking"
12+
name = "Breaking"
13+
showcontent = true
14+
15+
[[tool.towncrier.type]]
16+
directory = "feature"
17+
name = "Feature"
18+
showcontent = true
19+
20+
[[tool.towncrier.type]]
21+
directory = "bugfix"
22+
name = "Bugfix"
23+
showcontent = true
24+
25+
[[tool.towncrier.type]]
26+
directory = "internal"
27+
name = "Internal"
28+
showcontent = true
29+
30+
[[tool.towncrier.type]]
31+
directory = "documentation"
32+
name = "Documentation"
33+
showcontent = true

0 commit comments

Comments
 (0)