File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 3636 required : false
3737 default : ' production'
3838 type : string
39+ tag :
40+ description : ' NPM publish tag (e.g., latest, nightly)'
41+ required : false
42+ default : ' '
43+ type : string
3944 secrets :
4045 npm-token :
4146 description : ' NPM token for authentication'
@@ -63,10 +68,15 @@ jobs:
6368
6469 - name : Publish package
6570 run : |
71+ TAG_OPTION=""
72+ if [ -n "${{ inputs.tag }}" ]; then
73+ TAG_OPTION="--tag ${{ inputs.tag }}"
74+ fi
75+
6676 if [ "${{ inputs.provenance }}" = "true" ]; then
67- npm publish --access ${{ inputs.access }} --provenance
77+ npm publish --access ${{ inputs.access }} $TAG_OPTION --provenance
6878 else
69- npm publish --access ${{ inputs.access }}
79+ npm publish --access ${{ inputs.access }} $TAG_OPTION
7080 fi
7181 env :
7282 NODE_AUTH_TOKEN : ${{ secrets.npm-token }}
You can’t perform that action at this time.
0 commit comments