add task publish

This commit is contained in:
Yanick Champoux 2023-01-11 13:31:55 -05:00
parent cf78da1d70
commit 87f026a21c

View File

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