Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore/Automated release job #1254

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 3 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,13 @@ jobs:
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
# Checkout branch, bump version, push, merge, create release
- name: Setup Node
id: setup_node
uses: prefecthq/actions-setup-nodejs@main

- name: Bump Package Version
id: bump_version
run: |
npm version ${{ inputs.release_type }}
echo "RELEASE_VERSION=$(cat package.json | jq .version | tr -d '"')" >> $GITHUB_ENV

- name: Bump Version and Create Release
run: |
git checkout -b $RELEASE_VERSION
git push --set-upstream origin $RELEASE_VERSION
gh pr create --base main -f
gh pr merge --squash --admin --delete-branch
env:
GITHUB_TOKEN: ${{ secrets.PREFECT_CONTENTS_PR_RW }}

- uses: actions/checkout@v4
with:
ref: main

- uses: prefecthq/actions-release-ui-components@main
- uses: prefecthq/actions-release-ui-components@chore/add-automated-release
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-nebula-ui
Expand Down
Loading