-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb7bc6c
commit a9f4c03
Showing
1 changed file
with
9 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,22 +44,16 @@ jobs: | |
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Check Git status | ||
run: git status | ||
- name: Get version of the project | ||
id: project-version | ||
uses: 'euberdeveloper/ga-project-version@main' | ||
|
||
- name: Bump version | ||
id: bump_version | ||
run: | | ||
$version = (npm version patch -m "chore(release): %s [skip ci]").TrimStart("v") | ||
Write-Host "NEW_VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Append | ||
- name: Commit new version | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git commit -am "chore: bump version to ${{ env.NEW_VERSION }}" | ||
git tag v${{ env.NEW_VERSION }} | ||
git push origin develop --tags | ||
- name: 'change version' | ||
uses: reedyuk/[email protected] | ||
with: | ||
version: ${{ steps.project-version.outputs.version }} | ||
package: 'subproject-directory/' | ||
git-tag-version: 'true' | ||
|
||
- name: 📦 Electron Builder | ||
run: npm run electron:package:win | ||
|