Skip to content

Commit bb447a3

Browse files
committed
Polish release
1 parent 0c92911 commit bb447a3

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ lint: ## Lint Codebase
6969

7070
.PHONY: release
7171
release: ## Release the add-on on npmjs.org
72-
pnpm release
72+
pnpm release --config .release-it-local.json
7373

7474
.PHONY: release-dry-run
7575
release-dry-run: ## Dry-run the release of the add-on on npmjs.org
76-
pnpm release
76+
pnpm dry-release --config .release-it-local.json
7777

7878
.PHONY: test
7979
test: ## Run unit tests
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"plugins": {
3+
"../../core/packages/scripts/prepublish.js": {}
4+
},
5+
"hooks": {
6+
"after:bump": [
7+
"pipx run towncrier build --draft --yes --version ${version} > .changelog.draft",
8+
"pipx run towncrier build --yes --version ${version}",
9+
"cp ../../README.md ./ && cp CHANGELOG.md ../../CHANGELOG.md",
10+
"python3 -c 'import json; data = json.load(open(\"../../package.json\")); data[\"version\"] = \"${version}\"; json.dump(data, open(\"../../package.json\", \"w\"), indent=2)'",
11+
"git add ../../CHANGELOG.md ../../package.json"
12+
],
13+
"after:release": "rm .changelog.draft README.md"
14+
},
15+
"npm": {
16+
"publish": false
17+
},
18+
"git": {
19+
"changelog": "pipx run towncrier build --draft --yes --version 0.0.0",
20+
"requireUpstream": false,
21+
"requireCleanWorkingDir": false,
22+
"commitMessage": "Release ${version}",
23+
"tagName": "${version}",
24+
"tagAnnotation": "Release ${version}"
25+
},
26+
"github": {
27+
"release": true,
28+
"releaseName": "${version}",
29+
"releaseNotes": "cat .changelog.draft"
30+
}
31+
}

packages/volto-button-block/.release-it.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"plugins": {
3+
"../../core/packages/scripts/prepublish.js": {}
4+
},
25
"hooks": {
36
"after:bump": [
47
"pipx run towncrier build --draft --yes --version ${version} > .changelog.draft",
@@ -9,6 +12,9 @@
912
],
1013
"after:release": "rm .changelog.draft README.md"
1114
},
15+
"npm": {
16+
"publish": false
17+
},
1218
"git": {
1319
"changelog": "pipx run towncrier build --draft --yes --version 0.0.0",
1420
"requireUpstream": false,

0 commit comments

Comments
 (0)