Skip to content

Commit c7e9057

Browse files
authored
chore: CI workflow for bumping version (#43)
1 parent 0f8f756 commit c7e9057

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Build and Test
22

33
on:
44
pull_request:

.github/workflows/bump-version.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Bump Version
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
jobs:
11+
bump-version:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
ref: dev
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v2
22+
with:
23+
version: 10.12.1
24+
25+
- name: Use Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 20.x
29+
cache: 'pnpm'
30+
31+
- name: Install dependencies
32+
run: pnpm install --frozen-lockfile
33+
34+
- name: Bump version
35+
run: pnpm run bump-version
36+
37+
- name: Create PR
38+
uses: peter-evans/create-pull-request@v7
39+
with:
40+
commit-message: 'chore: bump version'
41+
title: '[CI] Bump version'
42+
body: Automated changes for bumping version
43+
branch: chore/ci-bump-version
44+
branch-suffix: timestamp

0 commit comments

Comments
 (0)