Skip to content

Commit b63b83a

Browse files
committed
chore: Add GitHub Actions workflow for automatic version bumping
1 parent b64a62d commit b63b83a

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

.github/workflows/bump-version.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Bump Version
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
bump:
10+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
24+
- name: Git Configuration
25+
run: |
26+
git config user.name "github-actions[bot]"
27+
git config user.email "github-actions[bot]@users.noreply.github.com"
28+
29+
- name: Bump version
30+
run: npm version patch -m "chore(release): %s [skip ci]"
31+
32+
- name: Push changes
33+
run: git push --follow-tags

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "magic-resume",
3-
"version": "1.0.0",
3+
"version": "0.0.0",
44
"private": true,
55
"packageManager": "pnpm@10.3.0",
66
"scripts": {

0 commit comments

Comments
 (0)