From c9e14fbe9cbe75e357273164af002c3dc86d1ee8 Mon Sep 17 00:00:00 2001 From: Tarik Demirovic Date: Wed, 9 Oct 2019 19:10:42 +0200 Subject: [PATCH 1/3] Add postversion script for 'yarn version' --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index a60423a..67aa184 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "author": "UBDI", "license": "MIT", "repository": "git://github.com/ubdi/ubdi-cli.git", + "scripts": { + "postversion": "git push --tags && npm publish && echo \"Successfully released version $npm_package_version!\"" + }, "dependencies": { "axios": "^0.19.0", "chalk": "^2.4.2", From 27e92e8c5a0f676fcc41237181577a7a723371fc Mon Sep 17 00:00:00 2001 From: Tarik Demirovic Date: Wed, 9 Oct 2019 19:14:37 +0200 Subject: [PATCH 2/3] Push tag explicitly --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 67aa184..37db54b 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "license": "MIT", "repository": "git://github.com/ubdi/ubdi-cli.git", "scripts": { - "postversion": "git push --tags && npm publish && echo \"Successfully released version $npm_package_version!\"" + "postversion": "git push origin $npm_package_version && npm publish && echo \"Successfully released version $npm_package_version!\"" }, "dependencies": { "axios": "^0.19.0", From 4f341de87a94010d3cee00f71a9959a859718ff9 Mon Sep 17 00:00:00 2001 From: Tarik Demirovic Date: Wed, 9 Oct 2019 19:18:51 +0200 Subject: [PATCH 3/3] Add missing v prefix for tag --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37db54b..630213c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "license": "MIT", "repository": "git://github.com/ubdi/ubdi-cli.git", "scripts": { - "postversion": "git push origin $npm_package_version && npm publish && echo \"Successfully released version $npm_package_version!\"" + "postversion": "git push origin v$npm_package_version && npm publish && echo \"Successfully released version $npm_package_version!\"" }, "dependencies": { "axios": "^0.19.0",