Skip to content

Conversation

mattsoulanille
Copy link
Member

@mattsoulanille mattsoulanille commented Mar 9, 2022

Allow alpha packages that are part of the monorepo to be published alongside the monorepo with a different version number than the monorepo's version number. Add WebGPU as an alpha package.

Running yarn release-tfjs produces the following output. Since tfjs-backend-webgpu is an alpha package, the release script asks the user what version it should have.

New version for monorepo (leave empty for 3.15.0): 
> example_release
New version for alpha package tfjs-backend-webgpu (leave empty for 0.0.1-alpha.9): 
> example_webgpu_release
Commit of release candidate (the last successful nightly build): 
> c513dc30a5cd1820d6c05b4f42ec322b5a038517

This produces the following PR: #6208.

Alpha packages can be added to the ALPHA_RELEASE_UNIT in release-util.ts.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

Copy link
Collaborator

@jinjingforever jinjingforever left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Collaborator

@lina128 lina128 left a comment

Choose a reason for hiding this comment

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

Thank you Matt!

Reviewable status: :shipit: complete! 2 of 1 approvals obtained

@gyagp
Copy link

gyagp commented Mar 10, 2022

Thanks Matt for integrating WebGPU into monorepo release. This is very meaningful for us!

@lina128 lina128 merged commit ccf4c2d into tensorflow:master Mar 10, 2022
@mattsoulanille mattsoulanille deleted the webgpu_release_script branch March 10, 2022 20:53
mattsoulanille added a commit to mattsoulanille/tfjs that referenced this pull request Mar 18, 2022
\tensorflow#6209 made the release script overwrite every dependency in the set of packages being published. This causes tfjs-core's verdaccio tests to fail because tfjs-core has a devDependency on tfjs-backend-cpu, but core needs to be published before cpu. This PR reverts to the original behavior of overwriting dependency versions in the package.json only if they are listed in a given release phase's dependencies.
lina128 pushed a commit that referenced this pull request Mar 18, 2022
* In release, replace only packages marked as deps

\#6209 made the release script overwrite every dependency in the set of packages being published. This causes tfjs-core's verdaccio tests to fail because tfjs-core has a devDependency on tfjs-backend-cpu, but core needs to be published before cpu. This PR reverts to the original behavior of overwriting dependency versions in the package.json only if they are listed in a given release phase's dependencies.

* Remove update-dependency.ts from e2e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants