Skip to content

Commit 2fd5ae2

Browse files
committed
chore: configure nx release git
1 parent cee5205 commit 2fd5ae2

File tree

2 files changed

+22
-65
lines changed

2 files changed

+22
-65
lines changed

.github/actions/release/action.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ runs:
4646
run: |
4747
npx nx release version
4848
npx nx run-many --target=build --all --parallel --maxParallel=4 --skipNxCache
49-
npx nx release changelog
5049
npx nx release publish
5150
- name: Tag last-release
5251
shell: bash

nx.json

Lines changed: 22 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -71,65 +71,30 @@
7171
"projects": ["@scalprum/core", "@scalprum/react-core", "@scalprum/react-test-utils"],
7272
"projectsRelationship": "independent",
7373
"version": {
74-
"generatorOptions": {
75-
"packageRoot": "dist/{projectRoot}",
76-
"currentVersionResolver": "git-tag",
77-
"updateDependents": "auto"
74+
"git": {
75+
"commit": true,
76+
"tag": true,
77+
"push": true,
78+
"commitMessage": "chore: bump {projectName} to {version} [skip ci]"
7879
},
79-
"conventionalCommits": {
80-
"types": {
81-
"feat": {
82-
"semverBump": "minor",
83-
"changelog": {
84-
"title": "Features"
85-
}
86-
},
87-
"fix": {
88-
"semverBump": "patch",
89-
"changelog": {
90-
"title": "Bug Fixes"
91-
}
92-
},
93-
"chore": {
94-
"semverBump": "patch",
95-
"changelog": {
96-
"title": "Chores"
97-
}
98-
},
99-
"refactor": {
100-
"semverBump": "patch",
101-
"changelog": {
102-
"title": "Refactoring"
103-
}
104-
},
105-
"docs": {
106-
"semverBump": "patch",
107-
"changelog": {
108-
"hidden": true
109-
}
110-
},
111-
"style": {
112-
"semverBump": "patch",
113-
"changelog": {
114-
"hidden": true
115-
}
116-
},
117-
"perf": {
118-
"semverBump": "patch",
119-
"changelog": {
120-
"hidden": true
121-
}
122-
},
123-
"test": {
124-
"semverBump": "patch",
125-
"changelog": {
126-
"hidden": true
127-
}
128-
}
129-
}
130-
}
80+
"preVersionCommand": "npx nx run-many -t build",
81+
"conventionalCommits": true,
82+
"preserveLocalDependencyProtocols": false,
83+
"versionActionsOptions": {
84+
"skipLockFileUpdate": false
85+
},
86+
"manifestRootsToUpdate": [
87+
"{projectRoot}",
88+
"{projectRoot}/dist"
89+
]
13190
},
13291
"changelog": {
92+
"git": {
93+
"commit": false,
94+
"tag": true,
95+
"push": true,
96+
"commitMessage": "chore: {projectName} changelog {version} [skip ci]"
97+
},
13398
"projectChangelogs": {
13499
"createRelease": "github",
135100
"renderOptions": {
@@ -139,13 +104,6 @@
139104
}
140105
}
141106
},
142-
"releaseTagPattern": "{projectName}-{version}",
143-
"git": {
144-
"commitMessage": "chore: bump {projectName} to {version} [skip ci]",
145-
"push": true,
146-
"commit": true,
147-
"tag": true,
148-
"stageChanges": true
149-
}
107+
"releaseTagPattern": "{projectName}-{version}"
150108
}
151109
}

0 commit comments

Comments
 (0)