Skip to content

Commit 86a2048

Browse files
authored
Merge pull request #525 from ember-codemods/update-release-plan
update release-plan
2 parents 90b75aa + 402b8d7 commit 86a2048

File tree

4 files changed

+320
-1127
lines changed

4 files changed

+320
-1127
lines changed

.github/workflows/plan-release.yml

+7-5
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:
@@ -34,6 +34,9 @@ jobs:
3434
runs-on: ubuntu-latest
3535
timeout-minutes: 5
3636
needs: check-plan
37+
permissions:
38+
contents: write
39+
pull-requests: write
3740
outputs:
3841
explanation: ${{ steps.explanation.outputs.text }}
3942
# only run on push event if plan wasn't updated (don't create a release plan when we're releasing)
@@ -60,18 +63,17 @@ jobs:
6063
run: |
6164
set -x
6265
63-
pnpm release-plan prepare --single-package=ember-angle-brackets-codemod
66+
pnpm release-plan prepare
6467
6568
echo 'text<<EOF' >> $GITHUB_OUTPUT
6669
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
6770
echo 'EOF' >> $GITHUB_OUTPUT
6871
env:
6972
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
7073

71-
- uses: peter-evans/create-pull-request@v5
74+
- uses: peter-evans/create-pull-request@v6
7275
with:
7376
commit-message: "Prepare Release using 'release-plan'"
74-
author: "github-actions[bot] <[email protected]>"
7577
labels: "internal"
7678
branch: release-preview
7779
title: Prepare Release
@@ -80,4 +82,4 @@ jobs:
8082
8183
-----------------------------------------
8284
83-
${{ steps.explanation.outputs.text }}
85+
${{ steps.explanation.outputs.text }}

.github/workflows/publish.yml

+5-2
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

@@ -38,6 +38,9 @@ jobs:
3838
runs-on: ubuntu-latest
3939
needs: check-plan
4040
if: needs.check-plan.outputs.command == 'release'
41+
permissions:
42+
contents: write
43+
pull-requests: write
4144

4245
steps:
4346
- uses: actions/checkout@v4
@@ -56,4 +59,4 @@ jobs:
5659

5760
env:
5861
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"execa": "^5.0.0",
5151
"jest": "^28.1.3",
5252
"prettier": "^2.7.1",
53-
"release-plan": "^0.4.1"
53+
"release-plan": "^0.7.0"
5454
},
5555
"engines": {
5656
"node": "16.* || 18.* || >=20.*"

0 commit comments

Comments
 (0)