add a prepRelease task
This commit is contained in:
parent
a5fc19a781
commit
bfd8b0c2ac
@ -12,11 +12,25 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- changelord print > CHANGELOG.md
|
- changelord print > CHANGELOG.md
|
||||||
test: vitest run
|
test: vitest run
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
sources: ["src/**"]
|
||||||
|
generates: ["esm/**"]
|
||||||
deps: [test]
|
deps: [test]
|
||||||
cmds:
|
cmds:
|
||||||
- rm -fr esm/
|
- rm -fr esm/
|
||||||
- tsc -p tsconfig.json
|
- 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:
|
default:
|
||||||
cmds:
|
cmds:
|
||||||
- echo "{{.GREETING}}"
|
- echo "{{.GREETING}}"
|
||||||
|
Loading…
Reference in New Issue
Block a user