Prepare Release PR #39
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: Prepare Release PR | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version to publish, e.g. 0.0.1' | |
required: true | |
default: '0.0.1' | |
type: string | |
jobs: | |
prepare_release: | |
name: Prepare Release PR | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/setup-and-build | |
- name: Bump versions | |
run: > | |
pnpm --recursive | |
--filter "!@tutorialkit/cli" | |
--filter "@tutorialkit/*" | |
exec pnpm version --no-git-tag-version --allow-same-version ${{ inputs.version }} | |
- name: Generage changelog | |
run: pnpm run changelog | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c | |
with: | |
# Note: `publish-release.yaml` checks explicitly for this commit message | |
commit-message: 'chore: release core packages v${{ inputs.version }}' | |
title: 'chore: release core packages v${{ inputs.version }}' | |
body: 'Bump core packages to version ${{ inputs.version }} and generate changelogs.' | |
reviewers: SamVerschueren,d3lm,Nemikolh,AriPerkkio | |
branch: chore/release-${{ inputs.version }} | |
token: ${{ secrets.GITOPS_REPO_PAT }} |