Skip to content

Commit

Permalink
Filter release for only tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnerd authored May 9, 2019
1 parent 56f8f7a commit d7240df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ action "test" {

workflow "publish on release" {
on = "release"
resolves = ["publish"]
resolves = ["tag-filter", "publish"]
}

action "tag-filter" {
uses = "actions/bin/filter@master"
args = "tag"
}

action "publish" {
needs = "tag-filter"
uses = "actions/npm@master"
args = "publish"
secrets = ["NPM_AUTH_TOKEN"]
Expand Down

0 comments on commit d7240df

Please sign in to comment.