-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
32 lines (31 loc) · 1.23 KB
/
index.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
import { RecipeBuilder } from "@blitzjs/installer"
import { join } from "path"
export default RecipeBuilder()
.setName("Semantic Release for GitHub")
.setDescription("This will install all necessary dependencies and configure @semantic-release/github for use.")
.setOwner("Stefan Kühnel <[email protected]>")
.setRepoLink("https://github.com/custom-recipes/semantic-release-github")
.addAddDependenciesStep({
stepId: "addDeps",
stepName: "Add npm dependencies",
explanation: "We'll install Semantic Release itself.",
packages: [
{
name: "semantic-release",
version: "latest",
isDevDep: true
}
]
})
.addNewFilesStep({
stepId: "addConfig",
stepName: "Add configuration files",
explanation: "Next, we need to add some configuration files!",
targetDirectory: ".",
// The 'template' directory replicates the root directory.
// For example, if the '.github/workflows/ci.yml' file is to be created,
// it must be located at 'templates/.github/workflows/ci.yml'.
templatePath: join(__dirname, "templates"),
templateValues: {}
})
.build()