Skip to main content
Go to Latest
File
version: '3'
tasks: release: cmds: - jq '.version="{{.CLI_ARGS}}"' package.json > package.json.tmp - rm package.json - mv package.json.tmp package.json - task: cl-new vars: {VERSION: "{{.CLI_ARGS}}"} - git add package.json CHANGELOG.md - 'git commit -am "release: v{{.CLI_ARGS}}"' - git tag v{{.CLI_ARGS}} - git push - git push --tags
cl-new: cmds: - go run github.com/haunt98/changeloguru/cmd/changeloguru@latest g --version {{.VERSION}} --to {{.PREV_TAG}} vars: PREV_TAG: sh: git describe --abbrev=0 --tags --exclude="$(git describe --abbrev=0 --tags)" "$(git describe --abbrev=0 --tags)"