-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Circle 2.0 setup requires further work #16306
Comments
A website deploy should only happen on stable and master branches. If the step is being skipped on those branches, it's because the Is the deploy-website step being skipped when test-website is successful? Or is there something we need to fix in test-website? |
Yes, @hramos, you are right! That's indeed same behaviour that we had in 1.x. Unfortunately, please look at the CircleCI - here's an example of a skipped build https://circleci.com/gh/facebook/react-native/22571 (and I think in this case it shouldn't). My issue is related to fact that |
There's no immediate need to work on it as I've restored to 1.0 on 0.50-stable. This will be used only for purposes of releasing new version. I will use this branch to roll out a fix and create a pipeline that satisfies our open source requirements. We will investigate further workflow / jobs setup to see what can be done in order to improve it. |
NPM still has not received 0.5 as of now. |
I can see it's on npm. What's the way you are checking?
…On Thu, 12 Oct 2017, 6:34 am Ram Shanker ***@***.***> wrote:
NPM still has not received 0.5 released as of now.
Need to publish it manually till the fix is worked out?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16306 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWcxnO7WoHU449OINu8F-02i9EdodqDks5srZbRgaJpZM4P1oRg>
.
|
Rechecked. I see following on NPM site in relevant section. react-native-bot react-native-bot published 3 days ago |
That only shows the "latest" version. Please use semver.npmjs.com to check
:)
…On Thu, 12 Oct 2017 at 08:14 Ram Shanker ***@***.***> wrote:
Rechecked. I see following on NPM site in relevant section.
react-native-bot react-native-bot published 3 days ago
0.49.3 is the latest of 216 releases
github.com/facebook/react-native
BSD-3-Clause
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16306 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWcxpSxDi1oF-oep44tENwqNhLNFJekks5sra5WgaJpZM4P1oRg>
.
|
The npm deploy step is missing from the Circle CI 2.0 config as Mike said earlier. Will open a PR to add it back. |
Opened #16340, but Circle is not yet running a build for it. |
#16350 landed. We now wait for approval when running builds on master and stable releases. This should allow you to selectively deploy to npm when a new release is cut. |
I believe this can be closed now. |
Is this a bug report?
Bug
Have you read the Contributing Guidelines?
Yes
Environment
Not related, issue is about CI.
Steps to Reproduce
Checkout stable branch of master and try releasing.
Expected Behavior
CircleCI builds
android
,js
andwebsite
in parallel. After all tasks have finished,deploy_website
anddeploy_npm
jobs are run.Actual Behavior
CircleCI builds
android
,js
andwebsite
not as jobs, but as separate workflows. That results in those 3 being unaware of each other. That makes it hard to run something as a result of successful test. A good example is missingnpm publish
. I tried adding it and couldn't find the right place. There's no hook to wait for all workflows to finish with success. You can't run it ondeploy_website
job because android tests can fail in the meantime (that did happen to me during my tests).Also, as in this example (https://circleci.com/gh/facebook/react-native/22571) website is not deployed despite all conditions being met.
How can this be fixed
We can add
deploy_npm
job afterdeploy_website
and mark it as the one that requires manual approval. That means person releasing new version (me in particular) would have to double check that all tests are green and hit the deploy.Alternatively,
npm publish
permissions has to be given to someone who will be running this command locally.The text was updated successfully, but these errors were encountered: