fix: the dir is incorrect for publishing desktop (#430)
Co-authored-by: rick <linuxsuren@users.noreply.github.com>
This commit is contained in:
parent
d31a4c5dc9
commit
95205fe4e5
|
@ -145,6 +145,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }}
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: |
|
||||
cd console/atest-desktop
|
||||
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
|
||||
npm run publish
|
||||
|
@ -153,6 +154,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }}
|
||||
if: github.ref != 'refs/heads/master'
|
||||
run: |
|
||||
cd console/atest-desktop
|
||||
export TAG=$(git describe --tags --abbrev=0)
|
||||
jq '.version = env.TAG' package.json > package.json.new && mv package.json.new package.json
|
||||
npm run publish
|
||||
|
|
Loading…
Reference in New Issue