Skip to content

Commit

Permalink
Adding bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
laisspportugal committed Aug 6, 2024
1 parent c108e87 commit 3f72ff0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/bum-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Auto Tag and Bump Version

on:
push:
branches:
- main # Trigger on push to main branch

jobs:
bump_and_tag:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Git
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '14'

- name: Install dependencies
run: yarn install

- name: Bump version and create tag
run: yarn version --patch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push changes and tags
run: |
git push --follow-tags
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3f72ff0

Please sign in to comment.