Skip to content

Update main.yml (#20) #2

Update main.yml (#20)

Update main.yml (#20) #2

Workflow file for this run

# .github/workflows/bump-version.yml
name: Auto Bump Version
on:
push:
branches: [main] # or 'release/*' if you prefer
jobs:
bump:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: PwaApp
run: ls -l MyMusicClientSveltePwa
- name: Install dependencies
run: npm ci
- name: Bump version
run: npm version patch --no-git-tag-version
- name: Commit and push version bump
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add package.json package-lock.json
git commit -m "chore: bump version"
git push