Update and rename build-test.yml to build-electron.yml

This commit is contained in:
Weiqi Gao 2023-12-28 17:57:36 +08:00 committed by GitHub
parent 5c26132b82
commit fe538a1fc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ on:
- "main" - "main"
paths: paths:
- "um-react" - "um-react"
- ".github/workflows/build-electron.yml"
permissions: permissions:
contents: write contents: write
@ -51,7 +52,7 @@ jobs:
id: version id: version
run: | run: |
um_ver=$(npm info ./um-react version) um_ver=$(npm info ./um-react version)
npm version $um_ver || true npm version $um_ver --allow-same-version --no-commit-hooks --no-git-tag-version
echo $um_ver echo $um_ver
echo version=$um_ver >> "$GITHUB_OUTPUT" echo version=$um_ver >> "$GITHUB_OUTPUT"
@ -99,7 +100,7 @@ jobs:
- name: Update version - name: Update version
run: | run: |
um_ver=$(npm info ./um-react version) um_ver=$(npm info ./um-react version)
npm version $um_ver || true npm version $um_ver --allow-same-version --no-commit-hooks --no-git-tag-version
echo $um_ver echo $um_ver
- name: Build - name: Build