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 }}" }