Skip to content

Commit 42e51ce

Browse files
authored
fix(workflow): 🐛 fixed issue with lerna version bump (#869)
1 parent 46b544a commit 42e51ce

File tree

7 files changed

+1177
-164
lines changed

7 files changed

+1177
-164
lines changed

.husky/commit-msg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
. "$(dirname "$0")/h"
2-
31
pnpm lint-staged
42
pnpm build:site
53
mvn clean install -f core-java/pom.xml -DskipTests

.husky/pre-commit

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
. "$(dirname "$0")/h"
2-
31
pnpm commitlint --edit $1

.release-it.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"$schema": "https://unpkg.com/release-it@17/schema/release-it.json",
3+
"plugins": {
4+
"@release-it-plugins/lerna-changelog": {
5+
"infile": "CHANGELOG.md"
6+
}
7+
},
8+
"git": {
9+
"requireBranch": "main",
10+
"commitMessage": "chore: release v${version}",
11+
"commit": true,
12+
"tag": true,
13+
"push": true,
14+
"requireCleanWorkingDir": true
15+
},
16+
"github": {
17+
"release": true,
18+
"tokenRef": "PUSH_TOKEN",
19+
"comments": {
20+
"submit": true,
21+
"issue": ":rocket: _This issue has been resolved in v${version}. See [${releaseName}](${releaseUrl}) for release notes._",
22+
"pr": ":rocket: _This pull request is included in v${version}. See [${releaseName}](${releaseUrl}) for release notes._"
23+
}
24+
},
25+
"npm": false
26+
}

core-java/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
<json-path.version>2.9.0</json-path.version>
4242
<log4j-core.version>2.23.1</log4j-core.version>
4343
<log4j-api.version>2.23.1</log4j-api.version>
44-
<faker.version>2.0.2</faker.version>
44+
<faker.version>2.3.1</faker.version>
4545
<jackson-dataformat-yaml.version>2.17.2</jackson-dataformat-yaml.version>
4646
<jackson-databind.version>2.17.2</jackson-databind.version>
4747
<ok2curl.version>0.8.0</ok2curl.version>
48-
<json-schema-validator.version>1.5.0</json-schema-validator.version>
48+
<json-schema-validator.version>1.5.1</json-schema-validator.version>
4949
<maven-clean-plugin.version>3.4.0</maven-clean-plugin.version>
5050
<maven-javadoc-plugin.version>3.8.0</maven-javadoc-plugin.version>
5151
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>

lerna.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"version": "1.2.0",
33
"npmClient": "pnpm",
4+
"useWorkspace": false,
45
"changelog": {
56
"repo": "BoykaFramework/boyka-framework",
67
"labels": {

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,19 @@
3232
"@commitlint/cli": "^19.3.0",
3333
"@commitlint/config-conventional": "^19.2.2",
3434
"@lerna/child-process": "^7.4.2",
35+
"@release-it-plugins/lerna-changelog": "^7.0.0",
3536
"@types/node": "^20.14.12",
3637
"@typescript-eslint/eslint-plugin": "^7.17.0",
3738
"@typescript-eslint/parser": "^7.17.0",
3839
"commitlint": "^19.3.0",
39-
"eslint": "^9.7.0",
40+
"eslint": "^9.8.0",
4041
"eslint-config-google": "^0.14.0",
4142
"eslint-config-prettier": "^9.1.0",
4243
"eslint-import-resolver-typescript": "^3.6.1",
4344
"eslint-plugin-import": "^2.29.1",
4445
"eslint-plugin-prettier": "^5.2.1",
4546
"eslint-plugin-react": "^7.35.0",
46-
"husky": "^9.1.1",
47+
"husky": "^9.1.3",
4748
"js-yaml": "^4.1.0",
4849
"lerna": "8.1.7",
4950
"lerna-changelog": "^2.2.0",
@@ -54,6 +55,7 @@
5455
"prettier": "^3.3.3",
5556
"react": "^18.3.1",
5657
"react-dom": "^18.3.1",
58+
"release-it": "^17.6.0",
5759
"ts-node": "^10.9.2",
5860
"typescript": "^5.5.4"
5961
},
@@ -68,9 +70,8 @@
6870
"lint:ci": "pnpm lint --quiet",
6971
"format": "prettier --check .",
7072
"format-fix": "prettier --write .",
71-
"changelog": "lerna-changelog",
72-
"beta": "lerna version --yes --no-git-tag-version --no-push --no-changelog --conventional-commits --preid beta",
73-
"release": "lerna version --yes --no-git-tag-version --no-push --no-changelog --conventional-commits",
73+
"beta": "pnpm release --preRelease=beta",
74+
"release": "release-it --ci",
7475
"release:major": "pnpm release major",
7576
"release:minor": "pnpm release minor",
7677
"release:patch": "pnpm release patch",

0 commit comments

Comments
 (0)