Skip to content

Commit 4126139

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

File tree

2 files changed

+17
-64
lines changed

2 files changed

+17
-64
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: 17 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -71,65 +71,26 @@
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-
}
80+
"preVersionCommand": "npx nx run-many -t build",
81+
"conventionalCommits": true,
82+
"preserveLocalDependencyProtocols": false,
83+
"versionActionsOptions": {
84+
"skipLockFileUpdate": false
13085
}
13186
},
13287
"changelog": {
88+
"git": {
89+
"commit": false,
90+
"tag": true,
91+
"push": true,
92+
"commitMessage": "chore: {projectName} changelog {version} [skip ci]"
93+
},
13394
"projectChangelogs": {
13495
"createRelease": "github",
13596
"renderOptions": {
@@ -139,13 +100,6 @@
139100
}
140101
}
141102
},
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-
}
103+
"releaseTagPattern": "{projectName}-{version}"
150104
}
151105
}

0 commit comments

Comments
 (0)