diff --git a/.github/workflows/release-connect-npm.yml b/.github/workflows/release-connect-npm.yml index cc637bdd89b..4e36ae5b613 100644 --- a/.github/workflows/release-connect-npm.yml +++ b/.github/workflows/release-connect-npm.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: inputs: packages: - description: "Comma-separated names of the packages to deploy. (example: 'connect,blockchain-link-types,blockchain-link-utils')" + description: 'Array string with names of the packages to deploy. (example: ["blockchain-link-utils","blockchain-link-types","analytics"])' required: true type: string deploymentType: @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - package: ${{ fromJson('[' + github.event.inputs.packages + ']') }} + package: ${{ fromJson(github.event.inputs.packages) }} steps: - uses: actions/checkout@v4 with: diff --git a/ci/scripts/connect-release-init-npm.js b/ci/scripts/connect-release-init-npm.js index 4af806d6b8b..be11ba64964 100644 --- a/ci/scripts/connect-release-init-npm.js +++ b/ci/scripts/connect-release-init-npm.js @@ -36,7 +36,7 @@ const ghWorkflowRunReleaseAction = (branch, packages, deployment) => '--ref', branch, '--field', - `packages="${packages}"`, + `packages=${packages}`, '--field', `deploymentType=${deployment}`, ]); @@ -212,7 +212,7 @@ const initConnectRelease = async () => { // and a pull request including all the changes. // Now we want to trigger the action that will trigger the actual release, // after approval form authorized member. - const dependenciesToRelease = update.join(','); + const dependenciesToRelease = JSON.stringify(update); console.log('dependenciesToRelease:', dependenciesToRelease); console.log('deploymentType:', deploymentType); console.log('branchName:', branchName); @@ -230,7 +230,7 @@ const initConnectRelease = async () => { console.log('Triggering action to release connect.'); const releaseConnectActionOutput = ghWorkflowRunReleaseAction( branchName, - ['connect', 'connect-web', 'connect-webextension'].join(','), + JSON.stringify(['connect', 'connect-web', 'connect-webextension']), deploymentType, );