diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e4961df..9271614 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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