Skip to content

Commit aa70d1b

Browse files
committed
Test new release process (1/n)
1 parent d221528 commit aa70d1b

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/draft-release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
name: 'Draft Release'
1717
runs-on: 'ubuntu-latest'
1818
steps:
19-
- uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4
19+
- name: 'Checkout'
20+
uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4
2021

21-
- uses: 'actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8' # ratchet:actions/setup-node@v4
22+
- name: 'Setup node'
23+
uses: 'actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8' # ratchet:actions/setup-node@v4
2224
with:
2325
node-version: '22.x'
2426

@@ -63,6 +65,7 @@ jobs:
6365
});
6466
releaseNotes = releaseNotesResponse.data.body;
6567
} catch(err) {
68+
core.debug(`error generating release notes: ${err}`)
6669
core.warning('No existing releases found, assuming initial release');
6770
releaseNotes = 'Initial release'
6871
}
@@ -77,7 +80,7 @@ jobs:
7780
uses: 'abcxyz/pkg/.github/actions/create-pull-request@main' # ratchet:exclude
7881
with:
7982
token: '${{ secrets.ACTIONS_BOT_TOKEN }}'
80-
base_branch: '${{ github.event.repository.default_branch }}' # TODO: pull from trigger branch instead (for release builds)
83+
base_branch: '${{ github.ref_name }}'
8184
head_branch: 'actions/draft-release-${{ github.ref_name }}'
8285
title: 'Release: v${{ steps.build.outputs.next_version }}'
8386
body: '${{ steps.generate-release-notes.outputs.release_notes }}'

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
name: 'Release'
1212
runs-on: 'ubuntu-latest'
1313
steps:
14-
- uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4
14+
- name: 'Checkout'
15+
uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4
1516

1617
- name: 'Get package version'
1718
run: |-

0 commit comments

Comments
 (0)