Skip to content

Commit c747a82

Browse files
authored
Merge pull request #1531 from emberjs/release-plan-4.x
make release-plan work for v4
2 parents beb9981 + 3134ad5 commit c747a82

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/plan-release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ name: Release Plan Review
22
on:
33
push:
44
branches:
5-
- main
6-
- master
5+
- v4.x
76
pull_request_target: # This workflow has permissions on the repo, do NOT run code from PRs in this workflow. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
87
types:
98
- labeled
109
- unlabeled
1110

1211
concurrency:
13-
group: plan-release # only the latest one of these should ever be running
12+
group: plan-release-v4 # only the latest one of these should ever be running
1413
cancel-in-progress: true
1514

1615
jobs:
@@ -24,7 +23,7 @@ jobs:
2423
- uses: actions/checkout@v4
2524
with:
2625
fetch-depth: 0
27-
ref: 'master'
26+
ref: 'v4.x'
2827
# This will only cause the `check-plan` job to have a "command" of `release`
2928
# when the .release-plan.json file was changed on the last commit.
3029
- id: check-release
@@ -79,7 +78,7 @@ jobs:
7978
with:
8079
commit-message: "Prepare Release using 'release-plan'"
8180
labels: "internal"
82-
branch: release-preview
81+
branch: release-preview-v4
8382
title: Prepare Release
8483
body: |
8584
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 👍

.github/workflows/publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ on:
88
workflow_dispatch:
99
push:
1010
branches:
11-
- main
12-
- master
11+
- v4.x
1312

1413
concurrency:
15-
group: publish-${{ github.head_ref || github.ref }}
14+
group: publish-v4-${{ github.head_ref || github.ref }}
1615
cancel-in-progress: true
1716

1817
jobs:
@@ -26,7 +25,7 @@ jobs:
2625
- uses: actions/checkout@v4
2726
with:
2827
fetch-depth: 0
29-
ref: 'master'
28+
ref: 'v4.x'
3029
# This will only cause the `check-plan` job to have a result of `success`
3130
# when the .release-plan.json file was changed on the last commit. This
3231
# plus the fact that this action only runs on main will be enough of a guard
@@ -52,7 +51,7 @@ jobs:
5251
- uses: pnpm/action-setup@v4
5352
- run: pnpm install --frozen-lockfile
5453
- name: npm publish
55-
run: pnpm release-plan publish
54+
run: pnpm release-plan publish --publish-branch v4.x --tag legacy-v4
5655
env:
5756
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
5857
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)