diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 1b1c515..a385940 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -9,6 +9,9 @@ on: - "example/**" - "docs/**" - "README.md" +permissions: + contents: read + jobs: # Build the commitizen and cache it so the workers can get it. build: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4ce179f..8424f67 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -18,7 +18,7 @@ jobs: strategy: matrix: go: [ '1.23', '1.24', '1.25' ] - os: [ ubuntu-latest, windows-latest ] + os: [ ubuntu-latest, windows-latest, macos-latest ] permissions: contents: read # for actions/checkout to fetch code pull-requests: read # for golangci/golangci-lint-action to fetch pull requests diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d417ae3..db6a272 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,9 +1,10 @@ # This is an example .goreleaser.yml file with some sensible defaults. # Make sure to check the documentation at https://goreleaser.com +version: 2 dist: _output snapshot: - name_template: '{{ incpatch .Version }}-next' + version_template: '{{ incpatch .Version }}-next' builds: - env: - CGO_ENABLED=0 @@ -40,10 +41,26 @@ archives: - CHANGELOG/** # Can be used to change the archive formats for specific GOOSs. # Most common use case is to archive as zip on Windows. - # Default is empty. format_overrides: - - goos: windows - format: zip + - # Which GOOS to override the format for. + goos: windows + + # The formats to use for the given GOOS. + # + # Valid options are: + # - `tar.gz` + # - `tgz` + # - `tar.xz` + # - `txz` + # - `tar.zst` + # - `tzst` # Since: v2.1. + # - `tar` + # - `gz` + # - `zip` + # - `binary` # be extra-cautious with the file name template in this case! + # - `none` # skips this archive + # + formats: ["zip"] # Plural form, multiple formats. Since: v2.6 checksum: name_template: 'CHECKSUM' changelog: @@ -85,6 +102,17 @@ scoops: description: The commitizen command line utility, without nodejs. Forked from commitizen-go, fixes some issues of commitizen-go and supports more new features. license: MIT +homebrew_casks: + - name: commitizen + repository: + owner: shipengqi + name: homebrew-casks + description: "The commitizen command line utility, without nodejs. Forked from commitizen-go, fixes some issues of commitizen-go and supports more new features." + homepage: "https://github.com/shipengqi/commitizen" + binary: "commitizen" + url: + template: "https://github.com/shipengqi/commitizen/releases/download/{{ .Tag }}/commitizen-{{ .Tag }}-{{ .Os }}-{{ .Arch }}.tar.gz" + # 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