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

Update release scripts to support experimental releases #17086

Merged
merged 2 commits into from
Oct 14, 2019

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Oct 14, 2019

Adds a check to the prepare-stable script to prevent experimental builds from being published using stable semver versions.

Also updates the function that downloads the artifacts to pull from the correct CI job. I think instead of two separate CI workflows, a better approach might be to build stable artifacts to the build directory and the experimental artifacts to a build_experimental directory, and generate both within the same workflow. This would take some work since lots of things assume the output directory is build, but something to consider in the future.

Test plan

Run

./scripts/release/prepare-stable.js --skipTests --version=0.0.0-experimental-d364d8555

and confirm that it exits with an error message.

Experimental builds should pull artifacts from the
`process_artifacts_experimental` job.

I think instead of two separate CI workflows, a better approach might
be to build stable artifacts to the `build` directory and the
experimental artifacts to a `build_experimental` directory, and
generate both within the same workflow. This would take some work since
lots of things assume the output directory is `build`, but something
to consider in the future.
Adds a check to the `prepare-stable` script to prevent experimental
builds from being published using stable semver versions.
@sizebot
Copy link

sizebot commented Oct 14, 2019

No significant bundle size changes to report.

Generated by 🚫 dangerJS against 9feaba7

Copy link
Contributor

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

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

This change looks good.

Since the new releases use the 0.0.0 version and contain the word "canary" I think our publish tag validation logic should just work for them too.

@acdlite acdlite merged commit a8c6a1b into facebook:master Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants