From f5fd0aef193dd25c73f3838d82b633cbaeefb2b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Tue, 6 Aug 2019 13:54:22 +0100 Subject: [PATCH] publish to GPR as a postpublish step --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0c90b88..7f8641f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "build": "rollup -c && cp src/index.js.flow dist/time-elements.js.flow && cp src/index.js.flow dist/time-elements-legacy.js.flow", "prepublishOnly": "npm run build", "pretest": "npm run build", - "test": "karma start ./test/karma.config.js" + "test": "karma start ./test/karma.config.js", + "postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'" }, "repository": "github/time-elements", "devDependencies": {