add a prepRelease task
This commit is contained in:
parent
a5fc19a781
commit
bfd8b0c2ac
@ -12,11 +12,25 @@ tasks:
|
||||
cmds:
|
||||
- changelord print > CHANGELOG.md
|
||||
test: vitest run
|
||||
|
||||
build:
|
||||
sources: ["src/**"]
|
||||
generates: ["esm/**"]
|
||||
deps: [test]
|
||||
cmds:
|
||||
- rm -fr esm/
|
||||
- tsc -p tsconfig.json
|
||||
|
||||
prepRelease:
|
||||
deps: [changelog, build]
|
||||
preconditions:
|
||||
- sh: git branch | grep '* main'
|
||||
msg: not on main
|
||||
- sh: git is-clean
|
||||
msg: stuff not commited
|
||||
cmds:
|
||||
- npm pack
|
||||
|
||||
default:
|
||||
cmds:
|
||||
- echo "{{.GREETING}}"
|
||||
|
Loading…
Reference in New Issue
Block a user