Skip to content

Commit

Permalink
fix(build-test): Fix unnecessarily running build-tests in publish (#5721
Browse files Browse the repository at this point in the history
)
  • Loading branch information
esauerbo authored Aug 30, 2024
1 parent dcb3251 commit 08b9df2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 12 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/publish-hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,26 @@ jobs:
working-directory: ./canary

build-test-v2:
uses: ./.github/workflows/reusable-build-system-test.yml
runs-on: ubuntu-latest
needs: publish-hotfix
with:
dist-tag: hotfix
environment: ci
if: ${{ needs.setup.outputs.has-changesets != 'true' }}
steps:
- name: Build test v2
uses: ./.github/workflows/reusable-build-system-test.yml
with:
dist-tag: hotfix

build-test-v2-react-native:
uses: ./.github/workflows/reusable-build-system-test-react-native.yml
runs-on: ubuntu-latest
needs: publish-hotfix
with:
dist-tag: hotfix
environment: ci
if: ${{ needs.setup.outputs.has-changesets != 'true' }}
steps:
- name: Build test v2 React Native
uses: ./.github/workflows/reusable-build-system-test-react-native.yml
with:
dist-tag: hotfix

publish:
runs-on: ubuntu-latest
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/publish-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,26 @@ jobs:
working-directory: ./canary

build-test-v2:
uses: ./.github/workflows/reusable-build-system-test.yml
needs: setup
with:
dist-tag: next
environment: ci
if: ${{ needs.setup.outputs.has-changesets != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Build test v2
uses: ./.github/workflows/reusable-build-system-test.yml
with:
dist-tag: next

build-test-v2-react-native:
uses: ./.github/workflows/reusable-build-system-test-react-native.yml
needs: setup
with:
dist-tag: next
environment: ci
if: ${{ needs.setup.outputs.has-changesets != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Build test v2 React Native
uses: ./.github/workflows/reusable-build-system-test-react-native.yml
with:
dist-tag: next

publish:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 08b9df2

Please sign in to comment.