Skip to content

Commit

Permalink
ci(release-utils): added changelog generation & deprecation of old ve…
Browse files Browse the repository at this point in the history
…rsions plugins

Expanded the capabilities of semantic-release system to generate the CHANGELOG files that will be
included with the distribution packages.  Separately, we can automatically deprecate versions that
we don't intend to support anymore which is basically 1 version back in all series
major/minor/update.
  • Loading branch information
codejedi365 committed Nov 6, 2021
1 parent bea5544 commit 6ec96b8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
branches: ["master", "next"],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
[
"semantic-release-npm-deprecate-old-versions",
{
rules: [
"supportLatest",
"supportPreReleaseIfNotReleased",
"deprecateAll"
]
}
]
]
};
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@commitlint/cli": "^13.2.1",
"@commitlint/config-conventional": "^13.2.0",
"@commitlint/cz-commitlint": "^13.2.1",
"@semantic-release/changelog": "^6.0.1",
"@types/eslint": "^7.28.0",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.0.2",
Expand Down Expand Up @@ -82,6 +83,7 @@
"remark-preset-prettier": "^0.5.1",
"resolve-from": "^5.0.0",
"semantic-release": "^18.0.0",
"semantic-release-npm-deprecate-old-versions": "^1.1.6",
"ts-jest": "^27.0.5",
"ts-loader": "^9.2.6",
"ts-node": "^10.2.1",
Expand Down

0 comments on commit 6ec96b8

Please sign in to comment.