Skip to content

Commit 5981e55

Browse files
authored
Create main.yml
1 parent b2f3570 commit 5981e55

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# .github/workflows/bump-version.yml
2+
name: Auto Bump Version
3+
4+
on:
5+
push:
6+
branches: [main] # or 'release/*' if you prefer
7+
8+
jobs:
9+
bump:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
21+
- name: PwaApp
22+
run: cd MyMusicClientSveltePwa
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Bump version
28+
run: npm version patch --no-git-tag-version
29+
30+
- name: Commit and push version bump
31+
run: |
32+
git config user.name "github-actions[bot]"
33+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
34+
git add package.json package-lock.json
35+
git commit -m "chore: bump version"
36+
git push

0 commit comments

Comments
 (0)