It’s too simple — To control automatic semantic-release with Github AND npm, please refer to this article. This article is about automatic versioning from comments without npm publishing. Before start, please install the required package, semantic-release $ npm install semantic-release -D Step 1. update package.json {
"name": "my-package",
"private": true,
"release": {
"branches": ["main"]
},
...
}