add a prepRelease task

This commit is contained in:
Yanick Champoux 2023-01-11 13:17:50 -05:00
parent a5fc19a781
commit bfd8b0c2ac

View File

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