Merge pull request #119 from PrefectHQ/1.0.32 #44
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: Release | |
on: | |
push: | |
paths: | |
- package.json | |
branches: | |
- main | |
jobs: | |
build-and-publish: | |
name: Build & Publish Release | |
runs-on: ubuntu-latest | |
environment: 'prod' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefecthq/actions-release-ui-components@main | |
id: release-ui-components | |
with: | |
NPM_TOKEN: ${{ secrets.PREFECT_UI_COMPONENTS_NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SKIP_BUILD: 'true' | |
outputs: | |
type: ${{ steps.release-ui-components.outputs.type }} | |
version: ${{ steps.release-ui-components.outputs.version }} | |
update-downstream-repos: | |
name: Update Downstream Repos | |
runs-on: ubuntu-latest | |
needs: build-and-publish | |
if: ${{ needs.build-and-publish.outputs.type }} | |
strategy: | |
matrix: | |
downstream-repos: [graphs, nebula-ui, prefect, prefect-design, prefect-ui-library, vue-charts, vue-compositions] | |
steps: | |
- uses: prefecthq/actions-trigger-downstream-npm-package-updates@main | |
name: Trigger Downstream NPM Package Update for ${{ matrix.downstream-repos }} | |
id: trigger-downstream-npm-package-update | |
with: | |
GITHUB_TOKEN: ${{ secrets.PREFECT_UI_COMPONENTS_ACTIONS_RW }} | |
DOWNSTREAM_REPO_NAME: ${{ matrix.downstream-repos }} | |
RELEASE_TAG: ${{ needs.build-and-publish.outputs.version }} |