update-version #16
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: Electron forge update/version | |
run-name: update-version | |
on: | |
workflow_dispatch: | |
env: | |
tag: "" | |
jobs: | |
update-electron-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Install Node.js and NPM | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Update version | |
run: | | |
git config --global user.email "github@silver-smok.com" | |
git config --global user.name "silver-smok-bot" | |
npm version patch | |
tag=$(git tag --points-at HEAD) | |
git push origin "$tag" | |
git push | |
echo "TAG=$tag" >> "$GITHUB_ENV" | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{ env.TAG }} | |
prerelease: true |