Skip to content

Commit 3a92b71

Browse files
committed
ci(auto): rewrite auto config to TypeScript
1 parent 3485bc4 commit 3a92b71

File tree

3 files changed

+1500
-1689
lines changed

3 files changed

+1500
-1689
lines changed

.autorc

Lines changed: 0 additions & 36 deletions
This file was deleted.

auto.config.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import { AutoRc } from '@auto-it/core'
2+
3+
import { INpmConfig } from '@auto-it/npm'
4+
import { IAllContributorsPluginOptions } from '@auto-it/all-contributors'
5+
6+
const npmOptions: INpmConfig = {
7+
exact: true,
8+
}
9+
10+
const allContributorsOptions: IAllContributorsPluginOptions = {
11+
exclude: ['dependabot', 'dependabot-preview'],
12+
types: {
13+
infra: ['./github/**/*'],
14+
example: ['examples/**/*'],
15+
doc: ['**/*.mdx', '**/*.md', 'packages/docs/**/*'],
16+
test: ['**/*.test.*', '**/*.spec.*'],
17+
code: [
18+
'packages/**/*.js',
19+
'packages/**/*.ts',
20+
'packages/**/*.jsx',
21+
'packages/**/*.tsx',
22+
'**/package.json',
23+
'**/tsconfig.json',
24+
],
25+
},
26+
}
27+
28+
export default function config(): AutoRc {
29+
return {
30+
baseBranch: 'stable',
31+
prereleaseBranches: ['develop'],
32+
plugins: [
33+
['npm', npmOptions],
34+
'conventional-commits',
35+
'first-time-contributor',
36+
'released',
37+
['all-contributors', allContributorsOptions],
38+
],
39+
}
40+
}

0 commit comments

Comments
 (0)