diff --git a/.github/main.workflow b/.github/main.workflow index 7ece7b43..ffd868c0 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,28 +1,25 @@ workflow "Build, Test, and Publish" { - on = "push" + on = "release" resolves = [ - "Publish", - "GitHub Action for npm", + "Filter release tag", + "Install", ] } -action "Build" { - uses = "actions/npm@master" + +action "Filter release tag" { + uses = "actions/bin/filter@b2bea07" + args = "tag release-*" +} + +action "Install" { + uses = "actions/npm@e7aaefe" + needs = ["Filter release tag"] args = "install" } action "Test" { - needs = "Build" - uses = "actions/npm@master" + uses = "actions/npm@e7aaefe" args = "test" + needs = ["Install"] } - -action "GitHub Action for npm" { - uses = "actions/npm@e7aaefe" - args = "install" -}//action "Publish" { -// needs = "Test" -// uses = "actions/npm@master" -// args = "publish --access public" -// secrets = ["NPM_AUTH_TOKEN"] -//}