From 177a9856e4dc595062970d468ea1fccf2e1ddc76 Mon Sep 17 00:00:00 2001 From: John Reilly Date: Sat, 5 Jan 2019 08:19:59 +0000 Subject: [PATCH] add first github action! (#891) * add first github action! * Update main.workflow --- .github/main.workflow | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/main.workflow diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 000000000..98d4d0bad --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,35 @@ +workflow "build, test and publish on release" { + on = "release" + resolves = "publish" +} + +# install with yarn +action "install" { + uses = "actions/npm@1.0.0" + runs = "yarn" + args = "install" +} + +# build with yarn +action "build" { + needs = "install" + uses = "actions/npm@1.0.0" + runs = "yarn" + args = "build" +} + +# test with yarn +action "test" { + needs = "build" + uses = "actions/npm@1.0.0" + runs = "yarn" + args = "test" +} + +# publish with npm +action "publish" { + needs = "test" + uses = "actions/npm@1.0.0" + args = "publish" + secrets = ["NPM_AUTH_TOKEN"] +}