Skip to content

Commit

Permalink
build: form version string manually
Browse files Browse the repository at this point in the history
- snapshot and release build has different .Version string
  • Loading branch information
muthukrishnan24 committed Feb 6, 2023
1 parent 83e21a6 commit e9a606c
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,19 @@ before:
- go mod tidy

builds:
-
env:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -s -w -X github.com/conventionalcommit/commitlint/internal.version={{.Version}} -X github.com/conventionalcommit/commitlint/internal.commit={{.FullCommit}} -X github.com/conventionalcommit/commitlint/internal.buildTime={{.Date}}
- -s -w -X github.com/conventionalcommit/commitlint/internal.version=v{{.Major}}.{{.Minor}}.{{.Patch}} -X github.com/conventionalcommit/commitlint/internal.commit={{.FullCommit}} -X github.com/conventionalcommit/commitlint/internal.buildTime={{.Date}}
flags:
- -tags=urfave_cli_no_docs

archives:
-
replacements:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
Expand All @@ -38,13 +36,13 @@ changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^style:'
- '^chore:'
- '^refactor:'
- '^build:'
- '^ci:'
- "^docs:"
- "^test:"
- "^style:"
- "^chore:"
- "^refactor:"
- "^build:"
- "^ci:"

release:
draft: true

0 comments on commit e9a606c

Please sign in to comment.