feat: use npx for automdated dep install

This commit is contained in:
Mikeal Rogers 2019-05-23 18:55:00 +00:00
parent 7a39bb7781
commit 241ed6179b
2 changed files with 13 additions and 2 deletions

View File

@ -8,12 +8,18 @@ action "Shell Lint" {
args = "entrypoint.sh"
}
action "Build" {
action "Build Docker" {
needs = ["Shell Lint"]
uses = "actions/docker/cli@master"
args = "build -t npm ."
}
action "Build" {
needs = ["Build Docker"]
uses = "actions/npm@master"
args = "install"
}
action "Docker Tag" {
needs = ["Build"]
uses = "actions/docker/tag@master"

View File

@ -12,4 +12,9 @@ if [ -n "$NPM_AUTH_TOKEN" ]; then
chmod 0600 "$NPM_CONFIG_USERCONFIG"
fi
sh -c "node /merge-release-run.js $*"
if [ $GITHUB_REPOSITORY == "mikeal/merge-release" ]
then
sh -c "node /merge-release-run.js $*"
else
sh -c "npx merge-release $*"
fi