Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tools] Publishing canary templates in the publish script #27655

Merged
merged 1 commit into from Mar 14, 2024

Conversation

tsapeta
Copy link
Member

@tsapeta tsapeta commented Mar 14, 2024

Why

et publish --canary is only publishing packages from the packages folder, but it would be nice to also publish project templates that use the canary version of our packages.

How

  • Added a new task to the canary publish pipeline that updates and publishes canary project templates.
  • I copied some functionalities from et update-project-templates to ProjectTemplates utils, but left the command unchanged so I don't break it. In the future I think it would be good to merge et update-project-templates and et publish-project-templates into the non-canary flow of et publish as well.

Test Plan

et publish --canary --dry passed and confirmed whether changes in the templates folder (version bumps) are correct.

@expo-bot expo-bot added the bot: passed checks ExpoBot has nothing to complain about label Mar 14, 2024
@tsapeta tsapeta force-pushed the @tsapeta/tools/publishing-canary-templates branch from 4e83d2c to 022186a Compare March 14, 2024 11:26
@tsapeta tsapeta marked this pull request as ready for review March 14, 2024 13:14
@tsapeta tsapeta requested a review from Kudo March 14, 2024 13:15
@tsapeta tsapeta force-pushed the @tsapeta/tools/publishing-canary-templates branch from 022186a to ab700ef Compare March 14, 2024 15:08

// Publish the project template with a `canary` tag.
await publishPackageAsync(template.path, {
tagName: 'canary',
Copy link
Member

Choose a reason for hiding this comment

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

can we also add the sdk branch tag? so for sdk 51 canary, sdk-51

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, we can! But I noticed there is an issue with how we version the expo package in canary releases – it's released as 50.0.0-canary-* instead of 51 😞 So, I would fix that first so we don't accidentally override sdk-50 tag.

Copy link
Member

Choose a reason for hiding this comment

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

:X yeah we should definitely bump that to 51!

@tsapeta tsapeta merged commit b877c73 into main Mar 14, 2024
5 checks passed
@tsapeta tsapeta deleted the @tsapeta/tools/publishing-canary-templates branch March 14, 2024 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants