-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #494 from PrefectHQ/chore/introduce-release-automa…
…tion Chore/introduce release automation
- Loading branch information
Showing
3 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,35 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
paths: | ||
- package.json | ||
branches: | ||
- main | ||
- v1 | ||
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.GITHUB_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 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
echo "Is the release a major, minor, or patch release?" | ||
read release_type | ||
gh workflow run release.yml \ | ||
--repo=prefecthq/graphs \ | ||
--ref=main \ | ||
-f release_type=$release_type |
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