Skip to content

Commit

Permalink
Chore(ci): Iontroduce semantic release for automated release management
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Oct 2, 2024
1 parent f2a263b commit d560095
Show file tree
Hide file tree
Showing 3 changed files with 1,270 additions and 46 deletions.
29 changes: 29 additions & 0 deletions .releaserc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* @type {import('semantic-release').GlobalConfig}
*/
export default {
branches: [
'+([0-9])?(.{+([0-9]),x}).x',
'master',
'main',
'next',
'next-major',
{ name: 'beta', prerelease: true },
{ name: 'alpha', prerelease: true },
],

plugins: [
'@semantic-release/commit-analyzer',
['semantic-release-lerna', { generateNotes: true, prepare: false, publish: false }],
'@semantic-release/changelog',
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'lerna.json', 'package.json', 'packages/*/package.json'],
},
],
],

debug: true,
ci: true,
};
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"packages:changed": "lerna changed",
"packages:list": "lerna ls",
"release": "npm-run-all --serial packages:build && packages:publish",
"version": "yarn format:fix:changelog"
"version": "yarn format:fix:changelog",
"srelease": "semantic-release"
},
"devDependencies": {
"@almacareer/remark-config": "0.1.0",
Expand All @@ -68,6 +69,8 @@
"@rollup/plugin-babel": "6.0.4",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-replace": "5.0.7",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@svgr/webpack": "8.1.0",
"babel-loader": "9.1.3",
"core-js": "3.38.1",
Expand Down Expand Up @@ -95,6 +98,9 @@
"remark-cli": "12.0.1",
"remark-lint-heading-capitalization": "1.2.0",
"sass-loader": "14.2.1",
"semantic-release": "^24.1.2",
"semantic-release-lerna": "^2.8.0",
"semantic-release-monorepo": "^8.0.2",
"style-loader": "4.0.0",
"typescript": "4.7.4",
"vite-raw-plugin": "1.0.2",
Expand Down
Loading

0 comments on commit d560095

Please sign in to comment.