Skip to content

Commit

Permalink
Update publish workflow to handle version tags with 'v' prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxianyun committed Jan 8, 2025
1 parent ae62c20 commit 8ae2512
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 'publish'
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- 'v*'


jobs:
Expand Down Expand Up @@ -47,7 +47,9 @@ jobs:
run: npm install

- name: set version
run: npm version ${GITHUB_REF##*/}
run: |
VERSION=$(echo "${GITHUB_REF##*/}" | sed 's/^v//')
npm version $VERSION
- uses: tauri-apps/tauri-action@v0
Expand Down

0 comments on commit 8ae2512

Please sign in to comment.