Skip to content

Commit 81e3c8e

Browse files
authored
chore(ci): publish dev builds every 6 hours instead of on every push (#63674)
1 parent 6aa3521 commit 81e3c8e

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎.github/release/plan-release.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# plan-release.sh: decides version, channel and npm dist-tag from the event, ref and dispatch inputs
33
# (INPUT_BUMP, INPUT_VERSION) only, and writes them to $GITHUB_OUTPUT. Nothing here reads repository files.
44
#
5-
# push or dispatch on dev -> dev 0.0.0-dev-<run> npm tag dev, desktop
5+
# schedule or dispatch on dev -> dev 0.0.0-dev-<run> npm tag dev, desktop
66
# dispatch on dev with bump/version -> latest x.y.z npm tag latest, releasers only, notes required
77
# push or dispatch on beta -> beta 0.0.0-beta-<run> desktop only
88
# pull_request -> pr 0.0.0-pr-<run> everything, dry run
@@ -13,7 +13,7 @@
1313
versioned=false
1414
if [ -n "${INPUT_BUMP:-}" ] || [ -n "${INPUT_VERSION:-}" ]; then versioned=true; fi
1515
case "$GITHUB_EVENT_NAME:$GITHUB_REF:$versioned" in
16-
push:refs/heads/dev:false | workflow_dispatch:refs/heads/dev:false) channel="dev" ;;
16+
schedule:refs/heads/dev:false | workflow_dispatch:refs/heads/dev:false) channel="dev" ;;
1717
workflow_dispatch:refs/heads/dev:true) channel="latest" ;;
1818
push:refs/heads/beta:false | workflow_dispatch:refs/heads/beta:false) channel="beta" ;;
1919
pull_request:*:false) channel="pr" ;;

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ run-name: "${{ format('release {0}{1}', inputs.bump, inputs.version) }}"
1616

1717
on:
1818
push:
19-
branches: [dev, beta]
19+
branches: [beta]
20+
schedule:
21+
- cron: "17 */6 * * *"
2022
workflow_dispatch:
2123
inputs:
2224
bump:
@@ -83,8 +85,8 @@ jobs:
8385

8486
# release.yml does not wait for the check-test push run on the same commit, so a stable release would publish
8587
# whatever that run later says. This gate runs the whole suite — unit tests on both OSes, the compiled builds and
86-
# the Linux browser suites — before any publish job below. Continuous dev and beta builds skip it: they publish
87-
# their own channel from a dev push, whose check-test run covers the same commit.
88+
# the Linux browser suites — before any publish job below. Dev and beta builds skip it: check-test already
89+
# runs on pushes to those branches.
8890
verify:
8991
needs: plan
9092
if: needs.plan.outputs.channel == 'latest'

0 commit comments

Comments
 (0)