This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update main.workflow * Update main.workflow * workflow * on release
- Loading branch information
1 parent
84af3c0
commit 7aec976
Showing
1 changed file
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] | ||
//} |