Skip to content

Commit

Permalink
goreleaser: switch to v2 config & GH Action
Browse files Browse the repository at this point in the history
Handle deprecated configuration settings, updating per guidance in
<https://goreleaser.com/deprecations/>.

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.
  • Loading branch information
philpennock committed Dec 9, 2024
1 parent ca54fee commit 5e4cc88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 3 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
project_name: natscli
version: 2

release:
github:
Expand All @@ -9,7 +10,7 @@ release:
prerelease: auto

changelog:
skip: true
disable: true

builds:
- main: ./nats
Expand Down Expand Up @@ -54,7 +55,7 @@ checksum:

brews:
- name: nats
folder: Formula
directory: Formula
repository:
owner: nats-io
name: homebrew-nats-tools
Expand Down

0 comments on commit 5e4cc88

Please sign in to comment.