From a9f4c031276606f40f5c4b5464994c5286de2762 Mon Sep 17 00:00:00 2001 From: Cameron Maloney Date: Sun, 9 Jun 2024 19:01:57 -0700 Subject: [PATCH] Update develop.yml --- .github/workflows/develop.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 4bda2e72..f1fcb8b6 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -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/npm-version@1.1.1 + with: + version: ${{ steps.project-version.outputs.version }} + package: 'subproject-directory/' + git-tag-version: 'true' - name: 📦 Electron Builder run: npm run electron:package:win