diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7d8a84ae2..6979133e3 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -318,3 +318,8 @@ announce: discord: enabled: true message_template: 'GoReleaser {{ .Tag }} is out! Check it out: https://github.com/goreleaser/goreleaser/releases/tag/{{ .Tag }}' + + +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=jcroql + diff --git a/internal/static/config.go b/internal/static/config.go index 859b9121a..7538744d1 100644 --- a/internal/static/config.go +++ b/internal/static/config.go @@ -36,4 +36,8 @@ changelog: exclude: - '^docs:' - '^test:' + +# modelines, feel free to remove those if you don't want/use them: +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj ` diff --git a/www/docs/customization/index.md b/www/docs/customization/index.md index 5c9c9b22e..e412d8ad9 100644 --- a/www/docs/customization/index.md +++ b/www/docs/customization/index.md @@ -15,11 +15,23 @@ GoReleaser also has a [jsonschema][] file which you can use to have better edito https://goreleaser.com/static/schema.json ``` + You can also specify it in your `.goreleaser.yml` config file by adding a + comment like the following: + ```yaml + # yaml-language-server: $schema=https://goreleaser.com/static/schema.json + ``` + === "Pro" ```sh https://goreleaser.com/static/schema-pro.json ``` + You can also specify it in your `.goreleaser.yml` config file by adding a + comment like the following: + ```yaml + # yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json + ``` + You can also generate it for your specific version using the [`goreleaser jsonschema`][schema] command. [jsonschema]: http://json-schema.org/draft/2020-12/json-schema-validation.html