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"] +}