From 5483d7b04c61da5c53649615b36655f6407c0f8e Mon Sep 17 00:00:00 2001 From: Andrei Date: Tue, 12 Feb 2019 21:20:16 +0100 Subject: [PATCH] Added - Publish on NPM action --- .github/main.workflow | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/main.workflow b/.github/main.workflow index 3ffbcf5..a34d8fa 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -13,3 +13,14 @@ action "Test" { uses = "actions/npm@master" args = "test" } + +workflow "Publish on NPM" { + on = "release" + resolves = ["Publish"] +} + +action "Publish" { + uses = "actions/npm@master" + args = "publish" + secrets = ["NPM_AUTH_TOKEN"] +}