Skip to content

Commit

Permalink
ci(workflows): support automated patch version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcr committed Jan 10, 2025
1 parent 4adc5f1 commit 83bde59
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/auto-all-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
build:
runs-on: windows-latest
outputs:
publishVersion: ${{ steps.parseTag.outputs.publishVersion }}
branchVersion: ${{ steps.parseTag.outputs.branchVersion }}
steps:
- name: Parse Tag
Expand All @@ -18,9 +17,7 @@ jobs:
with:
script: |
const tag = `${{ github.ref_name }}`
const publishVersion = tag.slice(3)
const branchVersion = tag.slice(1)
core.setOutput('publishVersion', publishVersion)
core.setOutput('branchVersion', branchVersion)
- name: CheckOut Code
Expand Down Expand Up @@ -53,10 +50,10 @@ jobs:
run: pnpm i --no-frozen-lockfile

- name: Run Build Components
run: pnpm build:ui -t ${{ steps.parseTag.outputs.publishVersion }}
run: pnpm build:ui

- name: Run Build Sass Common
run: pnpm build:ui saas-common -t ${{ steps.parseTag.outputs.publishVersion }} -d saas
run: pnpm build:ui saas-common -d saas

- name: Run Build Theme
run: pnpm build:theme
Expand Down

0 comments on commit 83bde59

Please sign in to comment.