Get smarter

This commit is contained in:
Andrew Branch
2020-05-14 09:00:00 -07:00
parent 15efee3b9e
commit 7924d52c54
2 changed files with 4 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ jobs:
github.event_name == 'repository_dispatch' ||
github.event_name == 'issue_comment'
&& github.event.issue.number == 1
&& github.actor == 'andrewbranch'
&& (github.actor == 'andrewbranch' || github.actor == 'sandersn')
&& startsWith(github.event.comment.body, '/deploy publisher')
runs-on: ubuntu-latest
steps:

View File

@@ -113,10 +113,11 @@ selectNodeVersion
if [ -e "$DEPLOYMENT_TARGET/package.json" ]; then
cd "$DEPLOYMENT_TARGET"
echo "Installing yarn"
$NPM_CMD install --global yarn@1.19.2
eval $NPM_CMD install --global yarn@1.19.2
rm -rf node_modules
echo "Running yarn install --frozen-lockfile --production"
npx yarn install --frozen-lockfile --production
NPM_BIN=`eval $NPM_CMD --global bin`
"$NPM_BIN/yarn" install --frozen-lockfile --production
exitWithMessageOnError "yarn failed"
cd - > /dev/null
fi