1515 type : string
1616 required : false
1717 default : " 0.18.0"
18- publish_package :
19- description : " Whether to publish a package to an npm registry"
20- required : true
21- type : boolean
18+ publish_packages :
19+ description : " comma separated list of package folders to publish to an npm registry"
20+ required : false
21+ type : string
22+ default : " "
2223 tag_format :
2324 description : " The tag format to use for the release tags"
2425 required : false
@@ -230,7 +231,7 @@ jobs:
230231 name : config_artifact
231232
232233 - name : Cache asdf
233- if : ${{ inputs.publish_package }}
234+ if : inputs.publish_packages != ''
234235 uses : actions/cache@v5
235236 with :
236237 path : |
@@ -240,15 +241,15 @@ jobs:
240241 ${{ runner.os }}-asdf-
241242
242243 - name : Install asdf dependencies in .tool-versions
243- if : ${{ inputs.publish_package }}
244+ if : inputs.publish_packages != ''
244245 uses : asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47
245246 with :
246247 asdf_version : ${{ inputs.asdfVersion }}
247248 env :
248249 PYTHON_CONFIGURE_OPTS : --enable-shared
249250
250251 - name : Install Dependencies and Build Package
251- if : ${{ inputs.publish_package }}
252+ if : inputs.publish_packages != ''
252253 run : |
253254 make install
254255 make build
@@ -314,7 +315,7 @@ jobs:
314315 env :
315316 GITHUB_TOKEN : ${{ github.token }}
316317 BRANCH_NAME : ${{ inputs.branch_name }}
317- PUBLISH_PACKAGE : ${{ inputs.publish_package }}
318+ PUBLISH_PACKAGES : ${{ inputs.publish_packages }}
318319 TAG_FORMAT : ${{ inputs.tag_format }}
319320 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
320321 MAIN_BRANCH : ${{ inputs.main_branch }}
@@ -325,7 +326,7 @@ jobs:
325326 env :
326327 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
327328 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
328- PUBLISH_PACKAGE : ${{ inputs.publish_package }}
329+ PUBLISH_PACKAGES : ${{ inputs.publish_packages }}
329330 TAG_FORMAT : ${{ inputs.tag_format }}
330331 MAIN_BRANCH : ${{ inputs.main_branch }}
331332 EXTRA_ASSET : ${{ inputs.extra_artifact_name }}
0 commit comments