Skip to content

Commit 2f08fff

Browse files
authored
Merge pull request #513 from ember-learn/update-release-plan
update release-plan
2 parents a8158bf + e6c9d01 commit 2f08fff

File tree

5 files changed

+797
-652
lines changed

5 files changed

+797
-652
lines changed

.github/workflows/plan-release.yml

+17-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- main
66
- master
77
pull_request:
8-
types:
8+
types:
99
- labeled
1010

1111
concurrency:
@@ -46,9 +46,10 @@ jobs:
4646
steps:
4747
- uses: actions/checkout@v4
4848
# We need to download lots of history so that
49-
# lerna-changelog can discover what's changed since the last release
49+
# github-changelog can discover what's changed since the last release
5050
with:
5151
fetch-depth: 0
52+
ref: 'master'
5253
- uses: actions/setup-node@v4
5354
with:
5455
node-version: 18
@@ -58,20 +59,27 @@ jobs:
5859
- name: "Generate Explanation and Prep Changelogs"
5960
id: explanation
6061
run: |
61-
set -x
62+
set +e
6263
63-
npx release-plan prepare
64+
npx release-plan prepare 2> >(tee -a release-plan-stderr.txt >&2)
6465
65-
echo 'text<<EOF' >> $GITHUB_OUTPUT
66-
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
67-
echo 'EOF' >> $GITHUB_OUTPUT
66+
67+
if [ $? -ne 0 ]; then
68+
echo 'text<<EOF' >> $GITHUB_OUTPUT
69+
cat release-plan-stderr.txt >> $GITHUB_OUTPUT
70+
echo 'EOF' >> $GITHUB_OUTPUT
71+
else
72+
echo 'text<<EOF' >> $GITHUB_OUTPUT
73+
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
74+
echo 'EOF' >> $GITHUB_OUTPUT
75+
rm release-plan-stderr.txt
76+
fi
6877
env:
6978
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
7079

71-
- uses: peter-evans/create-pull-request@v5
80+
- uses: peter-evans/create-pull-request@v6
7281
with:
7382
commit-message: "Prepare Release using 'release-plan'"
74-
author: "github-actions[bot] <[email protected]>"
7583
labels: "internal"
7684
branch: release-preview
7785
title: Prepare Release

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# For every push to the master branch, this checks if the release-plan was
22
# updated and if it was it will publish stable npm packages based on the
3-
# release plan
3+
# release plan
44

55
name: Publish Stable
66

RELEASE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release Process
22

3-
Releases in this repo are mostly automated using [release-plan](https://github.com/embroider-build/release-plan/). Once you label all your PRs correctly (see below) you will have an automatically generated PR that updates your CHANGELOG.md file and a `.release-plan.json` that is used prepare the release once the PR is merged.
3+
Releases in this repo are mostly automated using [release-plan](https://github.com/embroider-build/release-plan/). Once you label all your PRs correctly (see below) you will have an automatically generated PR that updates your CHANGELOG.md file and a `.release-plan.json` that is used to prepare the release once the PR is merged.
44

55
## Preparation
66

0 commit comments

Comments
 (0)