-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (41 loc) · 1.55 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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-nebula-ui
if: ${{ steps.release-ui-components.outputs.type }}
with:
GITHUB_TOKEN: ${{ secrets.NEBULA_UI_ACTIONS_RW }}
DOWNSTREAM_REPO_NAME: nebula-ui
RELEASE_TAG: ${{ steps.release-ui-components.outputs.version}}
- uses: prefecthq/actions-trigger-downstream-npm-package-updates@main
id: trigger-downstream-npm-package-update-prefect-oss
if: ${{ steps.release-ui-components.outputs.type }}
with:
GITHUB_TOKEN: ${{ secrets.PREFECT_ACTIONS_RW }}
DOWNSTREAM_REPO_NAME: prefect
RELEASE_TAG: ${{ steps.release-ui-components.outputs.version}}