Skip to content

Commit

Permalink
fix(ci): Actions output escaping to github script
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Oct 1, 2024
1 parent e7387e9 commit de197ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de197ed

Please sign in to comment.