feat: create release command

This commit is contained in:
Pete Davison
2023-03-26 15:32:20 +00:00
committed by Andrey Nering
parent cc1fd3d03e
commit 5583cea936
4 changed files with 646 additions and 661 deletions

View File

@@ -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