Release/1.0.4 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Pull Request | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
permissions: | ||
contents: true | ||
Check failure on line 8 in .github/workflows/create-release-pr.yml GitHub Actions / Create Pull RequestInvalid workflow file
|
||
pull-request: write | ||
jobs: | ||
create pull request: | ||
if: | | ||
github.event_name == 'issue_comment' && | ||
(github.event.comment.author_association == 'MEMBER' || github.event.comment.author_assoiciation == 'OWNER') && | ||
startsWith(github.event.comment.body, '/create release') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.11 | ||
- name: Install | ||
run: pnpm run install | ||
- name: GIT Identity | ||
run: | | ||
git config --global user.name '${GITHUB_ACTOR}' | ||
git config --global user.email '${GITHUB_ACTOR}@uses.noreply.github.com' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_ACTOR: ${{ github.actor }} | ||
- name: VersionUP Commit | ||
run: | | ||
pnpm run versionup --yes | ||
- name: Set Current CHANGELOG to output | ||
id: changelog | ||
shell: bash -ex {0} | ||
run: | | ||
version=$(node -p 'require("./lerna.json").version') | ||
echo "::set-output name=version::$(version)" | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: 'Update v${{ steps.changelog.outputs.version }}' | ||
committer: Github <[email protected]> | ||
author: '${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>' | ||
title: 'v${{ steps.changelog.outputs.version }}' | ||
body: | | ||
## v${{ steps.changelog.outputs.version }} | ||
### Breaking Changes: | ||
- [ ] TODO | ||
### Features: | ||
- [ ] TODO | ||
### Bug Fixes | ||
- [ ] TODO | ||
labels: 'Type: Release' | ||
branch: release/next | ||
request-to-parent: false | ||
- name: Check Outputs | ||
run: | | ||
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}" | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pr_number }}" |