Skip to content

version update and auto-release #30

version update and auto-release

version update and auto-release #30

Workflow file for this run

name: version update and auto release
run-name: version update and auto-release
on:
push:
branches:
- main
jobs:
version-bump-up:
runs-on: ubuntu-latest
steps:
- name: install node
uses: actions/setup-node@v3
with:
node-version: "20.x"
persist-credentials: false
token: ${{secrets.GITHUB_TOKEN}}
- name: Install Yarn
run: |
npm install -g yarn@latest
- name: checkout
uses: actions/checkout@v4
- name: install dependency
run: yarn
- name: set up git and authenticate
run: |
git config --global user.email "[email protected]"
git config --global user.name "shrilakshmishastry"
- name: version bump up
run: |
yarn --new-version patch
cat package.json
- name: rise PR and merge
uses: peter-evans/create-pull-request@v3
with:
token: ${{secrets.GITHUB_TOKEN}}
commit-message: "Automated pull request creation"
title: "Update the main branch"
body: "Automatically updating the main branch via GitHub Actions"
branch: temp
base: main
- name: push changes and create the tag
run: |
git push --tags