Skip to content

Commit

Permalink
update release-plan setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jan 11, 2024
1 parent d8b8872 commit 511da0f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 742 deletions.
5 changes: 4 additions & 1 deletion .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 Down
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
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 @@ -86,7 +86,7 @@
"prettier": "2.8.8",
"release-it": "17.0.0",
"release-it-lerna-changelog": "5.0.0",
"release-plan": "^0.3.0",
"release-plan": "^0.6.0",
"rimraf": "3.0.2",
"ts-jest": "29.1.1",
"typescript": "5.0.4"
Expand Down
Loading

0 comments on commit 511da0f

Please sign in to comment.