-
Notifications
You must be signed in to change notification settings - Fork 352
49 lines (39 loc) · 1.27 KB
/
update-rsbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Update Rsbuild
on:
workflow_dispatch:
jobs:
rsbuild:
name: Bump Rsbuild Version
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Pnpm
run: corepack enable
- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: "18"
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --ignore-scripts
- name: Prepare Generator Utils
run: pnpm run --filter @modern-js/generator-utils... build
- name: Update Rsbuild
run: pnpm run update-rsbuild
- name: Install Dependencies
run: pnpm install --ignore-scripts --no-frozen-lockfile
- name: Create commits
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git commit -am "feat: update rsbuild version"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
branch: 'feat-update-rsbuild-version'
title: 'feat: update rsbuild version'
body: 'feat: update rsbuild version'