Skip to content

Update App Version [MANUAL] #14

Update App Version [MANUAL]

Update App Version [MANUAL] #14

Workflow file for this run

name: Update version
on:
workflow_dispatch:
inputs:
version_type:
type: choice
description: Version type to update
default: patch
options:
- major
- minor
- patch
jobs:
update_version:
runs-on: self-hosted
steps:
- name: Show self-hosted machine infomation
run: uname -a
- uses: actions/checkout@v4
with:
token: ${{ secrets.SERVICE_TOKEN }}
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install
- name: Execute Update script
run: |
yarn env:update ${{github.event.inputs.version_type}}
- name: Create a commit
run: |
git config --global user.email "[email protected]"
git config --global user.name "Build"
git add package.json
git commit -m "update: version"
git push --force-with-lease