Skip to content

Release

Release #163

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
release_type:
description: Type of release to perform
required: true
default: patch
jobs:
build-and-publish:
name: Build & Publish Release
runs-on: ubuntu-latest
environment: 'prod'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure git user
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- uses: prefecthq/actions-release-ui-components@main
id: release-ui-components
with:
NPM_TOKEN: ${{ secrets.PREFECT_UI_COMPONENTS_NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PREFECT_CONTENTS_PR_RW }}
RELEASE_TYPE: ${{ inputs.release_type }}
- uses: prefecthq/actions-trigger-downstream-npm-package-updates@main
id: trigger-downstream-npm-package-update-prefect-ui-library
if: ${{ steps.release-ui-components.outputs.type }}
with:
GITHUB_TOKEN: ${{ secrets.PREFECT_UI_LIBRARY_ACTIONS_RW }}
DOWNSTREAM_REPO_NAME: prefect-ui-library
RELEASE_TAG: ${{ steps.release-ui-components.outputs.version}}