@samitouri / QOS-React-2 / commits / f58ad2ad8e

Auto-publish prereleases every weekday (#20733)

Sets up a cron trigger to publish prereleases at 16:00 UTC (11 am Eastern, 8 am Pacific) on every weekday (Monday through Friday).

Andrew Clark committed Feb 3, 2021 at 23:08 UTC f58ad2ad8ed2c38a111e1ab89d9f74fc925640ca
1 file changed +31 -2
.circleci/config.yml
+31 -2
@@ -515,8 +515,7 @@ workflows:
515 requires:
516 - setup
517
518 - # TODO: This workflow doesn't do anything yet, but you should be able to
519 - # trigger it using the CircleCI API
518 + # Used to publish a prerelease manually via the command line
519 publish_preleases:
520 when: << pipeline.parameters.prerelease_commit_sha >>
521 jobs:
@@ -535,3 +534,33 @@ workflows:
534 commit_sha: << pipeline.parameters.prerelease_commit_sha >>
535 release_channel: experimental
536 dist_tag: experimental
537 +
538 + # Publishes on a cron schedule
539 + publish_preleases_nightly:
540 + unless: << pipeline.parameters.prerelease_commit_sha >>
541 + triggers:
542 + - schedule:
543 + # At 16:00 UTC (11 am Eastern, 8 am Pacific) on every weekday (Monday
544 + # through Friday)
545 + cron: "0 16 * * 1-5"
546 + filters:
547 + branches:
548 + only:
549 + - master
550 + jobs:
551 + - setup
552 + - publish_prerelease:
553 + name: Publish to Next channel
554 + requires:
555 + - setup
556 + commit_sha: << pipeline.parameters.prerelease_commit_sha >>
557 + release_channel: stable
558 + dist_tag: next
559 + - publish_prerelease:
560 + name: Publish to Experimental channel
561 + requires:
562 + - setup
563 + commit_sha: << pipeline.parameters.prerelease_commit_sha >>
564 + release_channel: experimental
565 + dist_tag: experimental
566 +