From 87f026a21c831cad0c0d52554e2d350b2ef0b087 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Wed, 11 Jan 2023 13:31:55 -0500 Subject: [PATCH] add task publish --- Taskfile.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Taskfile.yaml b/Taskfile.yaml index baf4dee..5cbfb54 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -4,6 +4,8 @@ version: "3" vars: GREETING: Hello, World! + VERSION: + sh: cat package.json | jq -r .version tasks: changelog: @@ -31,6 +33,14 @@ tasks: cmds: - npm pack + publish: + deps: [prepRelease] + cmds: + - "git tag v{{.VERSION}}" + - npm publish --access public + - git push + - git push --tags + default: cmds: - echo "{{.GREETING}}"