diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index d03610a..6d1f3c2 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -39,9 +39,8 @@ jobs: result-encoding: string script: | const output = `${{ toJSON(steps.covector.outputs) }}`; - const json = JSON.parse(output); - const id = json["-org-dashed-pkg-releaseId"]; - return id + const [_, id] = /"-org-dashed-pkg-releaseId": "([0-9]+)"/g.exec(output); + return id; - name: Get result run: echo "${{steps.set-result.outputs.result}}" diff --git a/package.json b/package.json index fcab4d1..467332a 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,4 @@ { "name": "@org-dashed/pkg", - "version": "0.10.0" + "version": "0.11.0" }