Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
[CM-669] Allow publishing non major versions from additional branches (
Browse files Browse the repository at this point in the history
…#96)

* [No Ticket] Allow publishing non major versions from additional branches

* simpler branch name

* separate scheduled jobs for master and 3.x
  • Loading branch information
mschuwalow authored Jan 12, 2023
1 parent 7c71a88 commit 34c85a2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
41 changes: 30 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ version: 2.1
orbs:
node: circleci/[email protected]

constants:
releasable_branches: &releasable_branches
- master
- v3.x

parameters:
node_version:
type: string
Expand Down Expand Up @@ -107,7 +112,7 @@ jobs:
increment:
description: |
"Increment of release. Allowed values `prepatch`, `preminor`, `premajor`, `bump-prerelease`,
`alpha->beta`, `beta-rc`, `patch`, `minor`, `major`"
`alpha->beta`, `beta->rc`, `patch`, `minor`, `major`"
default: "patch"
type: string
steps:
Expand Down Expand Up @@ -148,7 +153,7 @@ workflows:
- browserstack
filters:
branches:
only: master
only: *releasable_branches

- release:
context: live-connect
Expand All @@ -164,7 +169,7 @@ workflows:
- browserstack
filters:
branches:
only: master
only: *releasable_branches

- release:
context: live-connect
Expand Down Expand Up @@ -196,7 +201,7 @@ workflows:
- browserstack
filters:
branches:
only: master
only: *releasable_branches

- release:
context: live-connect
Expand All @@ -212,7 +217,7 @@ workflows:
- browserstack
filters:
branches:
only: master
only: *releasable_branches

- release:
context: live-connect
Expand All @@ -228,7 +233,7 @@ workflows:
- browserstack
filters:
branches:
only: master
only: *releasable_branches

- release:
context: live-connect
Expand All @@ -244,7 +249,7 @@ workflows:
- browserstack
filters:
branches:
only: master
only: *releasable_branches

- release:
context: live-connect
Expand All @@ -260,7 +265,7 @@ workflows:
- browserstack
filters:
branches:
only: master
only: *releasable_branches

- release:
context: live-connect
Expand All @@ -284,14 +289,28 @@ workflows:
increment: "major"
requires:
- release_major?
daily:
daily-master:
triggers:
- schedule:
cron: "0 3 * * *"
filters:
branches:
only: master
jobs:
- simple_test

- browserstack:
requires:
- simple_test
context: org-global

daily-v3.x:
triggers:
- schedule:
cron: "0 7 * * *"
filters:
branches:
only:
- master
only: v3.x
jobs:
- simple_test

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ coverage.lcov
driver-logs
cjs
esm
test-resources

0 comments on commit 34c85a2

Please sign in to comment.