We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43ceefc + f34e6d2 commit 89ae732Copy full SHA for 89ae732
.github/main.workflow
@@ -0,0 +1,32 @@
1
+workflow "Build, Test, and Publish" {
2
+ on = "push"
3
+ resolves = ["Publish"]
4
+}
5
+
6
+action "Build" {
7
+ uses = "actions/npm@master"
8
+ args = "install"
9
+ env = {
10
+ NODE_ENV = "production"
11
+ }
12
13
14
+action "Test" {
15
+ needs = "Build"
16
17
+ args = "test"
18
19
20
+# Filter for a new tag
21
+action "Tag" {
22
+ needs = "Test"
23
+ uses = "actions/bin/filter@master"
24
+ args = "tag"
25
26
27
+action "Publish" {
28
+ needs = "Tag"
29
30
+ args = "publish --access public"
31
+ secrets = ["NPM_AUTH_TOKEN"]
32
0 commit comments