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 271cd04 commit b55c7da
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ jobs:
- name: Bump version
id: bump_version
run: |
# Bump version using npm
NEW_VERSION=$(npm version patch -m "chore(release): %s [skip ci]")
NEW_VERSION=$(echo $NEW_VERSION | tr -d 'v') # Remove the 'v' prefix
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV
$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: |
Expand All @@ -60,6 +58,11 @@ jobs:
git tag v${{ env.NEW_VERSION }}
git push origin develop --tags
- name: 📦 Electron Builder
run: npm run electron:package:win
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Rename file
run: |
$old_name = Get-ChildItem -Path dist -Filter 'LinguifAI Setup*.exe' | Select-Object -ExpandProperty Name
Expand Down

0 comments on commit b55c7da

Please sign in to comment.