From 30efbd68a460307339f7c027927cbea3f6e58918 Mon Sep 17 00:00:00 2001 From: Giovanni Bassi Date: Mon, 6 Jun 2022 09:48:47 -0300 Subject: [PATCH] Add create tag script --- .npmignore | 2 +- create-tag.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 create-tag.sh diff --git a/.npmignore b/.npmignore index 55d9a62..1163754 100644 --- a/.npmignore +++ b/.npmignore @@ -3,7 +3,7 @@ tmp .eslintrc.json .gitignore Dockerfile -test-driver.sh +*.sh testInstall.js update.js *.tgz diff --git a/create-tag.sh b/create-tag.sh new file mode 100755 index 0000000..61878f1 --- /dev/null +++ b/create-tag.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +git pull origin main +VERSION=`jq -r .version package.json` +git log -n 1 +git tag -s $VERSION -m $VERSION +git tag -v $VERSION +git push origin --tags