Skip to content

Commit 19da5e4

Browse files
🔧 chore: Add changelog workflow (lobehub#4662)
* 🔧 chore: Add changelog workflow * 🔧 chore: Update schema * 🔧 chore: Update schema * 🔧 chore: Update changelog workflow * 🔧 chore: Update changelog json * 🔧 chore: Update changelog * 📝 docs: Update Changelog
1 parent 19a0c57 commit 19da5e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+24850
-17184
lines changed

.i18nrc.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ module.exports = defineConfig({
2929
jsonMode: true,
3030
},
3131
markdown: {
32-
// reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
32+
reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
3333
entry: ['./README.zh-CN.md', './contributing/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'],
3434
entryLocale: 'zh-CN',
3535
outputLocales: ['en-US'],
36-
exclude: ['./contributing/_Sidebar.md', './contributing/_Footer.md', './contributing/Home.md'],
36+
includeMatter: true,
37+
exclude: [
38+
'./src/**/*',
39+
'./contributing/_Sidebar.md',
40+
'./contributing/_Footer.md',
41+
'./contributing/Home.md',
42+
],
3743
outputExtensions: (locale, { filePath }) => {
3844
if (filePath.includes('.mdx')) {
3945
if (locale === 'en-US') return '.mdx';

.releaserc.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
module.exports = require('@lobehub/lint').semanticRelease;
1+
const config = require('@lobehub/lint').semanticRelease;
2+
3+
config.plugins.push([
4+
'@semantic-release/exec',
5+
{
6+
prepareCmd: 'npm run workflow:changelog',
7+
},
8+
]);
9+
10+
module.exports = config;

0 commit comments

Comments
 (0)