Skip to content

Commit 5510d26

Browse files
use lerna to step version for release and create release commit
Signed-off-by: Marc Dumais <[email protected]>
1 parent 4f4f331 commit 5510d26

File tree

2 files changed

+3780
-59
lines changed

2 files changed

+3780
-59
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"scripts": {
1313
"start": "node src/dash-licenses-wrapper.js",
1414
"test": "mocha --reporter spec",
15-
"publish:ci": "yarn publish --non-interactive --access public --registry https://registry.npmjs.org/"
15+
"publish:ci": "yarn publish --non-interactive --access public --registry https://registry.npmjs.org/",
16+
"version:major": "lerna version major --exact --no-push --yes -m \"[Release]: v%s #major\n\nGitHub workflow shall publish and tag upon merge.\"",
17+
"version:minor": "lerna version minor --exact --no-push --yes -m \"[Release]: v%s #minor\n\nGitHub workflow shall publish and tag upon merge.\"",
18+
"version:patch": "lerna version patch --exact --no-push --yes -m \"[Release]: v%s #patch\n\nGitHub workflow shall publish and tag upon merge.\""
1619
},
1720
"files": [
1821
"src/*",
@@ -22,6 +25,7 @@
2225
],
2326
"devDependencies": {
2427
"chai": "^4.3.10",
28+
"lerna": "^7.0.0",
2529
"mocha": "^10.2.0"
2630
},
2731
"mocha": {

0 commit comments

Comments
 (0)