Update main.yml (#20) #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .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 |