Publish dev checks #11361
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish dev checks | |
on: | |
push: | |
branches: | |
- dev | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
should-publish: | |
runs-on: ubuntu-latest | |
outputs: | |
check: ${{ steps.check.outputs.should-publish }} | |
steps: | |
- uses: actions/checkout@v3 | |
- id: check | |
name: Check If Publish Is Needed | |
run: | | |
if ! node scripts/should-publish; then | |
echo "should-publish=false" >> "$GITHUB_OUTPUT" | |
else | |
echo "should-publish=true" >> "$GITHUB_OUTPUT" | |
fi | |
publish: | |
needs: [should-publish] | |
if: needs.should-publish.outputs.check == 'true' | |
uses: ./.github/workflows/dev-publish.yml | |
secrets: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
TEST_APP_TOKEN: ${{ secrets.TEST_APP_TOKEN }} |