Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
fix(taskfile): correct commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Nov 6, 2022
1 parent 9dcc3c5 commit 2525fb0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ version: '3'

tasks:
release:
- git tag v{{.CLI_ARGS}}
- jq '.version="{{.CLI_ARGS}}"' package.json > package.json.tmp
- rm package.json
- mv package.json.tmp package.json
- git add package.json
- git commit -m "release: v{{.CLI_ARGS}}""
- task: cl-new
cmds:
- git tag v{{.CLI_ARGS}}
- 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}}"

cl-new:
cmds:
- changeloguru g --version {{.CURRET_TAG}} --to {{.PREV_TAG}}
- changeloguru g --version {{.VERSION}} --to {{.PREV_TAG}}
vars:
CURRET_TAG:
sh: git describe --tags $(git rev-list --tags --max-count=1)
PREV_TAG:
sh: git describe --abbrev=0 --tags --exclude="$(git describe --abbrev=0 --tags)" "$(git describe --abbrev=0 --tags)"

0 comments on commit 2525fb0

Please sign in to comment.