Skip to content

Commit

Permalink
Update develop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 authored Jun 10, 2024
1 parent fb7bc6c commit a9f4c03
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9f4c03

Please sign in to comment.