Skip to content

Commit a271b97

Browse files
committed
add github actions ✨
1 parent 0ce6b0f commit a271b97

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/main.workflow

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
workflow "build, publish" {
2+
on = "push"
3+
resolves = ["publish"]
4+
}
5+
6+
# Filter for a new tag
7+
action "tag" {
8+
uses = "actions/bin/filter@master"
9+
args = "tag"
10+
}
11+
12+
action "install-root" {
13+
needs = "tag"
14+
uses = "nuxt/actions-yarn@master"
15+
args = "install"
16+
}
17+
18+
action "install-build" {
19+
needs = "tag"
20+
uses = "nuxt/actions-yarn@master"
21+
args = "--cwd build install"
22+
}
23+
24+
action "build" {
25+
needs = ["install-root","install-build"]
26+
uses = "nuxt/actions-yarn@master"
27+
args = "build"
28+
}
29+
30+
action "publish" {
31+
needs = "build"
32+
uses = "nuxt/actions-yarn@master"
33+
args = "publish --access public"
34+
secrets = ["NPM_AUTH_TOKEN"]
35+
}

0 commit comments

Comments
 (0)