From eab7370632ee7594fe678d69e5e1bd455b3f765f Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Fri, 20 Nov 2026 12:30:13 +0100 Subject: [PATCH] Add package selection inputs to publish preview workflow Add `packages` and `only-changed-packages` inputs to the publish preview workflow and pass them through to the reusable workflow. Callers can now publish preview builds for a chosen set of packages, or only for the packages changed compared to the base branch, instead of always publishing everything. --- .github/workflows/publish-preview.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index a2c19f4f4cb..b55c3d597ec 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -12,6 +12,16 @@ on: required: false type: string default: '' + packages: + description: 'Comma-separated list of packages to publish, e.g., "@metamask/network-controller, permission-controller". Mutually exclusive with "only-changed-packages". Leave empty to publish all packages.' + required: false + type: string + default: '' + only-changed-packages: + description: 'Only publish packages changed compared to the base branch. Mutually exclusive with "packages".' + required: false + type: boolean + default: true dry-run: description: 'Perform a dry run.' type: boolean @@ -32,6 +42,8 @@ jobs: with: pull-request: ${{ fromJSON(inputs.pull-request || '0') }} branch: ${{ inputs.branch }} + packages: ${{ inputs.packages }} + only-changed-packages: ${{ inputs.only-changed-packages }} dry-run: ${{ inputs.dry-run }} environment: default-branch docs-url: 'https://github.com/MetaMask/core/blob/main/docs/processes/preview-builds.md'