changelord.js/Taskfile.yaml

23 lines
490 B
YAML

# https://taskfile.dev
version: "3"
vars:
PARENT_BRANCH: main
tasks:
test: vitest run src
test:dev: vitest src
integrate:
deps: [test]
preconditions:
- sh: git is-clean
msg: checkout not clean
- sh: git diff-ls {{.PARENT_BRANCH}} | grep test
msg: no tests were added
- sh: git diff-ls {{.PARENT_BRANCH}} | grep CHANGELOG.yml
msg: no changelog entry detected
cmds:
- git checkout {{.PARENT_BRANCH}}
- git weld -