-
Notifications
You must be signed in to change notification settings - Fork 205
/
auto.config.ts
60 lines (55 loc) · 1.5 KB
/
auto.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { AutoRc } from "./packages/core";
import { INpmConfig } from "./plugins/npm";
import { IBrewPluginOptions } from "./plugins/brew";
// import { IGhPagesPluginOptions } from "./plugins/gh-pages";
import { IAllContributorsPluginOptions } from "./plugins/all-contributors";
const npmOptions: INpmConfig = {
exact: true,
canaryScope: "@auto-canary",
};
const allContributorsOptions: IAllContributorsPluginOptions = {
types: {
plugin: "**/plugin/**/*",
code: ["**/src/**/*", "**/package.json", "**/tsconfig.json"],
},
};
const brewOptions: IBrewPluginOptions = {
executable: "./packages/cli/binary/auto-macos.gz",
name: "auto",
};
/** Auto configuration */
export default function rc(): AutoRc {
return {
plugins: [
[
"protected-branch",
{
releaseTemporaryBranchPrefix: "protected-release-",
requiredStatusChecks: ["WIP", "build", "test", "lint"],
},
],
[
"upload-assets",
[
"./packages/cli/binary/auto-linux.gz",
"./packages/cli/binary/auto-macos.gz",
"./packages/cli/binary/auto-win.exe.gz",
],
],
["npm", npmOptions],
"released",
"first-time-contributor",
"pr-body-labels",
"./scripts/auto-update-curl-version.js",
["all-contributors", allContributorsOptions],
["brew", brewOptions],
],
labels: [
{
name: "blog-post",
changelogTitle: "📚 Blog Post",
releaseType: "none",
},
],
};
}