Skip to content

Commit 5fd58f6

Browse files
authored
ci: setup weekly release schedule (#1197)
1 parent 73fd48a commit 5fd58f6

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.circleci/config.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,20 @@ jobs:
164164
- run:
165165
name: Test packages size
166166
command: yarn run test:size
167+
prepare_release:
168+
<<: *defaults
169+
steps:
170+
- checkout
171+
- *attach_workspace
172+
- run: *install_yarn_version
173+
- restore_cache: *restore_yarn_cache
174+
- run: *run_yarn_install
175+
- run:
176+
name: Prepare a pull request for next release
177+
command: |
178+
git config --global user.email "[email protected]"
179+
git config --global user.name "Autocomplete[bot]"
180+
yarn run shipjs prepare --yes --no-browse
167181
release:
168182
<<: *defaults
169183
steps:
@@ -182,8 +196,11 @@ jobs:
182196
yarn run shipjs trigger
183197
184198
workflows:
185-
version: 2.1
199+
version: 2
186200
ci:
201+
when:
202+
not:
203+
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
187204
jobs:
188205
- build
189206
- test_metadata
@@ -210,3 +227,13 @@ workflows:
210227
filters:
211228
branches:
212229
only: next
230+
scheduled release:
231+
# This workflow is triggered by a schedule pipeline.
232+
# See: https://app.circleci.com/settings/project/github/algolia/autocomplete/triggers
233+
when:
234+
and:
235+
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
236+
- equal: [scheduled_release, << pipeline.schedule.name >>]
237+
jobs:
238+
- prepare_release:
239+
context: fx-libraries

0 commit comments

Comments
 (0)