From bfd8b0c2ac94d60efd3100b155d76b2205c4182e Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Wed, 11 Jan 2023 13:17:50 -0500 Subject: [PATCH] add a prepRelease task --- Taskfile.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Taskfile.yaml b/Taskfile.yaml index bfab44b..baf4dee 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -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}}"