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 6127946 commit 271cd04
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ jobs:
id: bump_version
run: |
# Bump version using npm
CURRENT_VERSION=$(jq -r '.version' package.json)
NEW_VERSION=$(npm version patch -m "chore(release): $CURRENT_VERSION -> %s [skip ci]")
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
Expand All @@ -63,9 +62,9 @@ jobs:
- name: Rename file
run: |
OLD_NAME=$(ls dist | grep 'LinguifAI Setup')
NEW_NAME="LinguifAI Setup ${{ env.NEW_VERSION }}.exe"
mv "dist/$OLD_NAME" "dist/$NEW_NAME"
$old_name = Get-ChildItem -Path dist -Filter 'LinguifAI Setup*.exe' | Select-Object -ExpandProperty Name
$new_name = "LinguifAI Setup ${{ env.NEW_VERSION }}.exe"
Rename-Item -Path "dist\$old_name" -NewName $new_name
- name: Create Release
id: create_release
Expand Down

0 comments on commit 271cd04

Please sign in to comment.