-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
43 lines (38 loc) · 960 Bytes
/
Taskfile.yml
File metadata and controls
43 lines (38 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3'
tasks:
next-version:
desc: Print the next version based on unreleased commits
cmds:
- git-cliff --bumped-version
changelog:
desc: "Update CHANGELOG.md for a release (usage: task changelog -- v0.2.0)"
requires:
vars: [CLI_ARGS]
vars:
TAG: '{{.CLI_ARGS}}'
cmds:
- "git-cliff --unreleased --tag {{.TAG}} --prepend CHANGELOG.md"
release-commit:
desc: "Commit staged release changes (usage: task release-commit -- v0.2.0)"
requires:
vars: [CLI_ARGS]
vars:
TAG: '{{.CLI_ARGS}}'
cmds:
- "git commit -am 'chore: release {{.TAG}}'"
tag:
desc: "Tag and push a release (usage: task tag -- v0.2.0)"
requires:
vars: [CLI_ARGS]
vars:
TAG: '{{.CLI_ARGS}}'
cmds:
- "git tag {{.TAG}}"
- git push
- git push --tags
# Help and info
default:
desc: Show available tasks
cmds:
- task --list
silent: true