fix: the dir is incorrect for publishing desktop (#430)

Co-authored-by: rick <linuxsuren@users.noreply.github.com>
This commit is contained in:
Rick 2024-05-15 22:32:32 +08:00 committed by GitHub
parent d31a4c5dc9
commit 95205fe4e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }} GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }}
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
run: | run: |
cd console/atest-desktop
export TAG=$(gh release list -L 1 | awk '{print $4}') export TAG=$(gh release list -L 1 | awk '{print $4}')
jq '.version = env.TAG' package.json > package.json.new && mv package.json.new package.json jq '.version = env.TAG' package.json > package.json.new && mv package.json.new package.json
npm run publish npm run publish
@ -153,6 +154,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }} GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }}
if: github.ref != 'refs/heads/master' if: github.ref != 'refs/heads/master'
run: | run: |
cd console/atest-desktop
export TAG=$(git describe --tags --abbrev=0) export TAG=$(git describe --tags --abbrev=0)
jq '.version = env.TAG' package.json > package.json.new && mv package.json.new package.json jq '.version = env.TAG' package.json > package.json.new && mv package.json.new package.json
npm run publish npm run publish