From de197edda244c1ea08cb68e7f98b1a7b3a99b77b Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Tue, 1 Oct 2024 17:45:45 -0400 Subject: [PATCH] fix(ci): Actions output escaping to github script --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a0df2fc..7acffff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,8 +44,9 @@ jobs: with: result-encoding: string script: | - console.log(`git tag: ${steps.version.outputs.tag}`) - const distTag = steps.version.outputs.tag.match(/^v\d+\.\d+\.\d+$/) ? 'latest' : 'alpha' + const gitTag = '${{ steps.version.outputs.tag }}' + console.log(`git tag: ${gitTag}`) + const distTag = gitTag.match(/^v\d+\.\d+\.\d+$/) ? 'latest' : 'alpha' console.log(`npm dist tag: ${distTag}`) return distTag