forked from glidejs/glide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.workflow
45 lines (38 loc) · 945 Bytes
/
main.workflow
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
workflow "Build on push" {
resolves = ["lint", "test", "build"]
on = "push"
}
workflow "Publish on release" {
resolves = ["publish"]
on = "release"
}
action "install" {
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
args = "install"
}
action "lint" {
needs = "install"
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
args = "run lint"
}
action "test" {
needs = "install"
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
args = "run test"
}
action "build" {
needs = "install"
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
args = "run build"
}
action "tag" {
needs = ["lint", "test", "build"]
uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da"
args = "tag"
}
action "publish" {
needs = "tag"
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
args = "publish --access public"
secrets = ["NPM_ACCESS_TOKEN"]
}