Update Version #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Version | |
on: | |
workflow_dispatch: | |
inputs: | |
new-version: | |
description: 'New version' | |
required: true | |
type: string | |
jobs: | |
update-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.MY_PAT }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.10.0 | |
- name: Update boot version | |
run: echo ${{ inputs.new-version }} > boot/version | |
- name: Update executable version | |
run: npm version ${{ inputs.new-version }} --prefix electron | |
- name: Set git user | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Evgeny" | |
- name: Commit version | |
run: | | |
git commit -am 'version ${{ inputs.new-version }}' | |
git push | |
- name: Create tag | |
run: | | |
git tag v${{ inputs.new-version }} | |
git push --tags | |
- name: check all stuff | |
run: | | |
cat boot/version | |
cat electron/package.json | |
git log |