Skip to content

Commit

Permalink
fix: jq command to update version (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos authored Jun 23, 2023
1 parent 5718013 commit 47437ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
node-version: 18
cache: 'pnpm'
- run: pnpm install
- run: jq '.package.version = "${${{ github.ref_name }}#v}"' src-tauri/tauri.conf.json > tmp && mv tmp src-tauri/tauri.conf.json
- run: |
version=${{ github.ref_name }}
jq --arg version "${version#v}" '.package.version = $version' src-tauri/tauri.conf.json > tmp && mv tmp src-tauri/tauri.conf.json
- name: Build the app
uses: tauri-apps/tauri-action@v0
env:
Expand Down

0 comments on commit 47437ac

Please sign in to comment.