Skip to content

update version bump

update version bump #3

Workflow file for this run

name: Bump version
on:
push:
branches:
- main
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Bump version
id: bump
run: |
npm version patch
echo "New version: $(node -p "require('./package.json').version")"
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add package.json
git commit -m "ci: bump version to $(node -p "require('./package.json').version")"
git push