diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..31fd8fc --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,22 @@ +workflow "Build and Size Check" { + on = "push" + resolves = "Size" +} + +action "Install" { + uses = "actions/npm@master" + runs = "yarn" + args = "install" +} + +action "Build" { + needs = "Install" + uses = "actions/npm@master" + runs = "yarn" + args = "build" +} + +action "Size" { + needs = "Build" + uses = "kamilkisiela/size-limit@master" +} diff --git a/package.json b/package.json index aa1da13..d399002 100644 --- a/package.json +++ b/package.json @@ -55,5 +55,10 @@ "rxjs/operators": "rxjs.operators" } } - } -} \ No newline at end of file + }, + "size-limit": [ + { + "path": "dist/bundles/ng.apollo-network-status.umd.js" + } + ] +}