Skip to content

Commit

Permalink
fix(infra): build and publish if there are commits since last night (s…
Browse files Browse the repository at this point in the history
…jbarag#634)

I negated all of those `if` properties.  Whooooops
  • Loading branch information
sjbarag authored Mar 31, 2021
1 parent 9d3e411 commit 8ffedfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nightly-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
{
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"
}
},
{
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 }}"
}
Expand Down

0 comments on commit 8ffedfa

Please sign in to comment.