(fix) Make the build action open a PR (#65) #4
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 build | |
on: | |
push: | |
branches: | |
- main | |
env: | |
CI: true | |
jobs: | |
version: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code repository | |
uses: actions/checkout@v4 | |
- name: setup node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: install pnpm | |
run: npm i pnpm@latest -g | |
- name: install dependencies | |
run: pnpm install | |
- name: sync | |
run: pnpm sync | |
- name: build | |
run: pnpm build | |
- name: create pull request | |
id: pr | |
uses: peter-evans/create-pull-request@main | |
with: | |
commit-message: '(chore) Add build files' | |
title: '(chore) Add build files' | |
delete-branch: true | |
branch: build/${{ github.run_id }} | |
add-paths: packages/ | |
reviewers: ${{ github.actor }} | |
assignees: ${{ github.actor }} |