octopush/_examples/actions/add_releaserc/main.go

26 lines
387 B
Go
Raw Normal View History

2022-09-18 21:47:48 +02:00
package main
import "github.com/bitfield/script"
func main() {
2022-09-18 21:53:16 +02:00
releaseRc := `
branches:
- "main"
- "v0.x"
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
- "@semantic-release/git"
`
2022-09-18 21:47:48 +02:00
_, err := script.
2022-09-18 21:53:16 +02:00
Echo(releaseRc).
WriteFile(".releaserc.yml")
2022-09-18 21:47:48 +02:00
if err != nil {
panic(err)
}
}