From 5e4cc88de57d1b619a7490c13936765215c4c81f Mon Sep 17 00:00:00 2001 From: Phil Pennock Date: Mon, 9 Dec 2024 13:44:00 -0500 Subject: [PATCH] goreleaser: switch to v2 config & GH Action Handle deprecated configuration settings, updating per guidance in . Add an internal `version:` field in the GoReleaser YAML, for v2. Switch the GitHub Action to @v6 which will use goreleaser v2, and make the version explicitly `"~> v2"`. Before, it said "latest" but that was implicitly bound by the action to be v1, leading to a little head-scratching. --- .github/workflows/release.yaml | 4 ++-- .goreleaser.yml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1a3d439d..991515e6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -56,9 +56,9 @@ jobs: repositories: "homebrew-nats-tools" - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: - version: latest + version: "~> v2" args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index b1399c88..066db3b0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,5 @@ project_name: natscli +version: 2 release: github: @@ -9,7 +10,7 @@ release: prerelease: auto changelog: - skip: true + disable: true builds: - main: ./nats @@ -54,7 +55,7 @@ checksum: brews: - name: nats - folder: Formula + directory: Formula repository: owner: nats-io name: homebrew-nats-tools