Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/publish-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Downside of having this enabled by default is that you need to remember to uncheck it when filling out "packages". Wondering if we should disable it by default?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’d keep it enabled and check back next week, once teams have used it a few times, to see whether they’re using it as intended.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good!

dry-run:
description: 'Perform a dry run.'
type: boolean
Expand All @@ -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'