Skip to content

Commit 0931acf

Browse files
authored
fix: support .config directory for goreleaser config files (#500)
* fix: support .config directory for goreleaser config files Add support for .config/goreleaser.yaml and .config/goreleaser.yml configuration files to match GoReleaser's official search order. * run $ docker buildx bake build
1 parent 90c43f2 commit 0931acf

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ async function run(): Promise<void> {
3232
if (argv.config) {
3333
yamlfile = argv.config;
3434
} else {
35-
['.goreleaser.yaml', '.goreleaser.yml', 'goreleaser.yaml', 'goreleaser.yml'].forEach(f => {
35+
[
36+
'.config/goreleaser.yaml',
37+
'.config/goreleaser.yml',
38+
'.goreleaser.yaml',
39+
'.goreleaser.yml',
40+
'goreleaser.yaml',
41+
'goreleaser.yml'
42+
].forEach(f => {
3643
if (fs.existsSync(f)) {
3744
yamlfile = f;
3845
}

0 commit comments

Comments
 (0)