Skip to content

Commit 1f4010b

Browse files
committed
chore: add release-it config
1 parent 6ffa1a3 commit 1f4010b

3 files changed

Lines changed: 58 additions & 0 deletions

File tree

.release-it.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore(release): v${version}",
4+
"tagName": "v${version}",
5+
"push": true,
6+
"requireCleanWorkingDir": true
7+
},
8+
"github": {
9+
"release": true,
10+
"releaseName": "v${version}",
11+
"tokenRef": "GITHUB_TOKEN"
12+
},
13+
"npm": {
14+
"publish": false
15+
},
16+
"plugins": {
17+
"release-it-calver-plugin": {
18+
"format": "YYYY.MM.MICRO"
19+
},
20+
"@release-it/conventional-changelog": {
21+
"preset": {
22+
"name": "conventionalcommits"
23+
},
24+
"infile": "CHANGELOG.md",
25+
"header": "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Calendar Versioning](https://calver.org/).\n\n"
26+
}
27+
},
28+
"hooks": {
29+
"before:init": ["git status --porcelain"]
30+
}
31+
}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Calendar Versioning](https://calver.org/).
7+

package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "docker-java",
3+
"version": "2023.12.1",
4+
"description": "Java / OpenJDK Docker image with calendar versioning",
5+
"private": true,
6+
"scripts": {
7+
"release": "release-it",
8+
"release:dry": "release-it --dry-run"
9+
},
10+
"devDependencies": {
11+
"release-it": "^17.0.0",
12+
"release-it-calver-plugin": "^2024.1.0",
13+
"@release-it/conventional-changelog": "^8.0.0"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/beevelop/docker-java.git"
18+
},
19+
"license": "MIT"
20+
}

0 commit comments

Comments
 (0)