Skip to content

Commit

Permalink
build(scripts): fix nightly exit codes
Browse files Browse the repository at this point in the history
Made changes to the nightly script and workflow so we can exit with code 0 so the action doesn't "fail" and alert us yet we can still prevent the publish steps from executing.
  • Loading branch information
y0hami authored Mar 27, 2022
1 parent a907076 commit 98d03e1
Show file tree
Hide file tree
Showing 4 changed files with 8,712 additions and 20 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ jobs:
name: Build nightly distribution
runs-on: ubuntu-latest
if: github.repository == 'fomantic/Fomantic-UI'
outputs:
shouldPublish:
description: "If the package should be published"
value: ${{ steps.nightly-version.outputs.shouldPublish }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -20,12 +24,13 @@ jobs:
- name: install dependencies
run: npm install --ignore-scripts
- name: update nightly version
id: nightly-version
run: node ./scripts/nightly-version.js
- name: fomantic install & build
if: ${{ success() }}
if: ${{ steps.nightly-version.outputs.shouldPublish }}
run: npx gulp install
- name: publish to npm
if: ${{ success() }}
if: ${{ steps.nightly-version.outputs.shouldPublish }}
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm publish --tag nightly
Expand Down
Loading

0 comments on commit 98d03e1

Please sign in to comment.