Skip to content

Commit

Permalink
update release-plan
Browse files Browse the repository at this point in the history
npm init release-plan-setup@latest
  • Loading branch information
mansona committed Feb 14, 2024
1 parent 90b75aa commit 402b8d7
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 1,127 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/plan-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
- master
pull_request:
types:
types:
- labeled

concurrency:
Expand Down Expand Up @@ -34,6 +34,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
needs: check-plan
permissions:
contents: write
pull-requests: write
outputs:
explanation: ${{ steps.explanation.outputs.text }}
# only run on push event if plan wasn't updated (don't create a release plan when we're releasing)
Expand All @@ -60,18 +63,17 @@ jobs:
run: |
set -x
pnpm release-plan prepare --single-package=ember-angle-brackets-codemod
pnpm release-plan prepare
echo 'text<<EOF' >> $GITHUB_OUTPUT
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}

- uses: peter-evans/create-pull-request@v5
- uses: peter-evans/create-pull-request@v6
with:
commit-message: "Prepare Release using 'release-plan'"
author: "github-actions[bot] <github-actions-bot@users.noreply.github.com>"
labels: "internal"
branch: release-preview
title: Prepare Release
Expand All @@ -80,4 +82,4 @@ jobs:
-----------------------------------------
${{ steps.explanation.outputs.text }}
${{ steps.explanation.outputs.text }}
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# For every push to the master branch, this checks if the release-plan was
# updated and if it was it will publish stable npm packages based on the
# release plan
# release plan

name: Publish Stable

Expand Down Expand Up @@ -38,6 +38,9 @@ jobs:
runs-on: ubuntu-latest
needs: check-plan
if: needs.check-plan.outputs.command == 'release'
permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4
Expand All @@ -56,4 +59,4 @@ jobs:

env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"execa": "^5.0.0",
"jest": "^28.1.3",
"prettier": "^2.7.1",
"release-plan": "^0.4.1"
"release-plan": "^0.7.0"
},
"engines": {
"node": "16.* || 18.* || >=20.*"
Expand Down
Loading

0 comments on commit 402b8d7

Please sign in to comment.