Skip to content

Commit 37aed8b

Browse files
authored
chore(CI/CD): Add NPM tag parameter to publish (#58)
1 parent db80a88 commit 37aed8b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
- '22'
1414
- '24'
1515
default: '24'
16+
npm-tag:
17+
description: 'NPM tag to publish the package (e.g., latest, beta, etc.)'
18+
required: false
19+
default: 'latest'
20+
type: string
1621
dry-run:
1722
description: Performs a dry run of the publish.
1823
required: false
@@ -30,5 +35,5 @@ jobs:
3035
secrets: inherit
3136
with:
3237
node-version: ${{ inputs.node-version }}
33-
npm-tag: latest
38+
npm-tag: ${{ inputs.npm-tag || 'latest' }}
3439
dry-run: ${{ inputs.dry-run }}

0 commit comments

Comments
 (0)