mirror of
https://github.com/go-task/task.git
synced 2026-05-18 05:05:20 +02:00
feat: create release command
This commit is contained in:
committed by
Andrey Nering
parent
cc1fd3d03e
commit
5583cea936
14
Taskfile.yml
14
Taskfile.yml
@@ -106,18 +106,10 @@ tasks:
|
||||
cmds:
|
||||
- goreleaser --snapshot --rm-dist
|
||||
|
||||
docs:changelog:
|
||||
desc: Copy CHANGELOG.md to the documentation website
|
||||
vars:
|
||||
FILE: docs/docs/changelog.md
|
||||
release:
|
||||
desc: Prepare the project for a new release
|
||||
cmds:
|
||||
- rm {{.FILE}}
|
||||
- 'echo "---" >> {{.FILE}}'
|
||||
- 'echo "slug: /changelog/" >> {{.FILE}}'
|
||||
- 'echo "sidebar_position: 7" >> {{.FILE}}'
|
||||
- 'echo "---" >> {{.FILE}}'
|
||||
- 'echo "" >> {{.FILE}}'
|
||||
- 'cat CHANGELOG.md >> {{.FILE}}'
|
||||
- go run ./cmd/release {{.CLI_ARGS}}
|
||||
|
||||
npm:publish:
|
||||
desc: Publish release to npm
|
||||
|
||||
Reference in New Issue
Block a user