Skip to content

Commit 0ce77dc

Browse files
committed
ci(workflows): fix distribution tag logic
in `continuous-deployment` workflow
1 parent a7237c5 commit 0ce77dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/continuous-deployment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ jobs:
7373
with:
7474
script: |
7575
let dtag = process.env.tag.split('-')[1] || ''
76+
7677
if (dtag && dtag.includes('.')) dtag = dtag.split('.')[0]
78+
if (dtag) dtag = `--tag ${dtag}`
7779
78-
core.setOutput('args', `--tag ${dtag}`.trim())
80+
core.setOutput('args', dtag.trim())
7981
publish-package:
8082
name: Publish package to GPR & NPM
8183
needs: deployment-info

0 commit comments

Comments
 (0)