From 8ffedfa27bdba0a0498ba601df5caee99104fe43 Mon Sep 17 00:00:00 2001 From: Sean Barag Date: Wed, 31 Mar 2021 11:19:56 -0700 Subject: [PATCH] fix(infra): build and publish if there are commits since last night (#634) I negated all of those `if` properties. Whooooops --- .github/workflows/nightly-build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly-build.yaml b/.github/workflows/nightly-build.yaml index f2dd649c..56c4f197 100644 --- a/.github/workflows/nightly-build.yaml +++ b/.github/workflows/nightly-build.yaml @@ -20,7 +20,7 @@ { name: "Set up node 12", uses: "actions/setup-node@v1", - if: "${{ job.commits_since_last_nightly.outcome == 'failure' }}", + if: "${{ job.commits_since_last_nightly.outcome == 'success' }}", with: { registry-url: "https://registry.npmjs.com", node-version: "12" @@ -28,11 +28,11 @@ }, { run: "yarn", - if: "${{ job.commits_since_last_nightly.outcome == 'failure' }}" + if: "${{ job.commits_since_last_nightly.outcome == 'success' }}" }, { run: "yarn publish --no-git-tag-version --new-version `node scripts/getNightlyVersion.js` --tag nightly", - if: "${{ job.commits_since_last_nightly.outcome == 'failure' }}", + if: "${{ job.commits_since_last_nightly.outcome == 'success' }}", env: { NODE_AUTH_TOKEN: "${{ secrets.NPM_PUBLISH_TOKEN }}" }