-
Notifications
You must be signed in to change notification settings - Fork 107
43 lines (37 loc) · 1.34 KB
/
prepare-release.yaml
File metadata and controls
43 lines (37 loc) · 1.34 KB
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
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 }}