Skip to content

Commit

Permalink
chore(ci): only publish @canary release if packages/** has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Dec 11, 2020
1 parent 37c95e6 commit 358ef86
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/canary-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,21 @@ on:
- master

jobs:
checkPackagesHaveChanged:
runs-on: ubuntu-latest
outputs:
packagesHaveChanged: ${{ steps.filter.outputs.packagesHaveChanged }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
packagesHaveChanged:
- 'packages/**'
publish-canary:
needs: checkPackagesHaveChanged
if: ${{ needs.checkPackagesHaveChanged.outputs.packagesHaveChanged == 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 358ef86

Please sign in to comment.