Skip to content

Commit b5cdb4f

Browse files
committed
restore main's separate release config
1 parent 0dfd857 commit b5cdb4f

2 files changed

Lines changed: 24 additions & 22 deletions

File tree

.github/workflows/plan-release.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ name: Release Plan Review
22
on:
33
push:
44
branches:
5-
- 2.x
5+
- main
6+
- master
67
pull_request:
78
types:
89
- labeled
910

1011
concurrency:
11-
group: plan-release-2.x # only the latest one of these should ever be running
12+
group: plan-release # only the latest one of these should ever be running
1213
cancel-in-progress: true
1314

1415
jobs:
1516
check-plan:
16-
name: 'Check Release Plan'
17+
name: "Check Release Plan"
1718
runs-on: ubuntu-latest
1819
outputs:
1920
command: ${{ steps.check-release.outputs.command }}
@@ -22,7 +23,7 @@ jobs:
2223
- uses: actions/checkout@v4
2324
with:
2425
fetch-depth: 0
25-
ref: '2.x'
26+
ref: 'main'
2627
# This will only cause the `check-plan` job to have a "command" of `release`
2728
# when the .release-plan.json file was changed on the last commit.
2829
- id: check-release
@@ -48,21 +49,21 @@ jobs:
4849
# github-changelog can discover what's changed since the last release
4950
with:
5051
fetch-depth: 0
51-
ref: '2.x'
52+
ref: 'main'
5253
- uses: actions/setup-node@v4
5354
with:
5455
node-version: 18
55-
56+
5657
- uses: pnpm/action-setup@v3
5758
- run: pnpm install --frozen-lockfile
58-
59-
- name: 'Generate Explanation and Prep Changelogs'
59+
60+
- name: "Generate Explanation and Prep Changelogs"
6061
id: explanation
6162
run: |
6263
set +e
63-
64+
6465
pnpm release-plan prepare 2> >(tee -a stderr.log >&2)
65-
66+
6667
6768
if [ $? -ne 0 ]; then
6869
echo 'text<<EOF' >> $GITHUB_OUTPUT
@@ -79,9 +80,9 @@ jobs:
7980
- uses: peter-evans/create-pull-request@v6
8081
with:
8182
commit-message: "Prepare Release using 'release-plan'"
82-
labels: 'internal'
83-
branch: release-preview-2.x
84-
title: Prepare Release (2.x)
83+
labels: "internal"
84+
branch: release-preview
85+
title: Prepare Release
8586
body: |
8687
This PR is a preview of the release that [release-plan](https://github.com/embroider-build/release-plan) has prepared. To release you should just merge this PR 👍
8788

.github/workflows/publish.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,22 @@
22
# updated and if it was it will publish stable npm packages based on the
33
# release plan
44

5-
name: Publish Stable (2.x)
5+
name: Publish Stable
66

77
on:
88
workflow_dispatch:
99
push:
1010
branches:
11-
- 2.x
11+
- main
12+
- master
1213

1314
concurrency:
14-
group: publish-2.x-${{ github.head_ref || github.ref }}
15+
group: publish-${{ github.head_ref || github.ref }}
1516
cancel-in-progress: true
1617

1718
jobs:
1819
check-plan:
19-
name: 'Check Release Plan'
20+
name: "Check Release Plan"
2021
runs-on: ubuntu-latest
2122
outputs:
2223
command: ${{ steps.check-release.outputs.command }}
@@ -25,15 +26,15 @@ jobs:
2526
- uses: actions/checkout@v4
2627
with:
2728
fetch-depth: 0
28-
ref: '2.x'
29+
ref: 'main'
2930
# This will only cause the `check-plan` job to have a result of `success`
3031
# when the .release-plan.json file was changed on the last commit. This
3132
# plus the fact that this action only runs on main will be enough of a guard
3233
- id: check-release
3334
run: if git diff --name-only HEAD HEAD~1 | grep -w -q ".release-plan.json"; then echo "command=release"; fi >> $GITHUB_OUTPUT
3435

3536
publish:
36-
name: 'NPM Publish'
37+
name: "NPM Publish"
3738
runs-on: ubuntu-latest
3839
needs: check-plan
3940
if: needs.check-plan.outputs.command == 'release'
@@ -48,12 +49,12 @@ jobs:
4849
node-version: 18
4950
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
5051
registry-url: 'https://registry.npmjs.org'
51-
52+
5253
- uses: pnpm/action-setup@v3
5354
- run: pnpm install --frozen-lockfile
5455
- name: npm publish
55-
run: pnpm release-plan publish --publish-branch=2.x
56-
56+
run: pnpm release-plan publish
57+
5758
env:
5859
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
5960
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)