Skip to content

10 refactor launchts #17

10 refactor launchts

10 refactor launchts #17

Workflow file for this run

name: Bump Version
on:
pull_request_target:
branches:
- main
push:
branches:
- github-actions
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Bump version
id: bump_version
run: |
VERSION=$(npm version patch --no-git-tag-version)
echo "version=$VERSION" >> $GITHUB_ENV
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: "📦 Bump a new version"
commit_options: '--verebose'
file_pattern: "package.json package-lock.json"
tagging_message: "${{ env.version }}"
push_options: '--tags'