Skip to content

Commit 792d5ee

Browse files
committed
chore: fix circleci publish_production pipeline on tag
1 parent 0372acc commit 792d5ee

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.circleci/config.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ parameters:
2020
anchor_1: &attach_options
2121
at: << pipeline.parameters.working_directory >>
2222

23-
anchor_2: &executor_shared_options
23+
anchor_2: &filter_release_tag
24+
filters:
25+
tags:
26+
only: /^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
27+
28+
anchor_3: &executor_shared_options
2429
working_directory: << pipeline.parameters.working_directory >>
2530
environment:
2631
JEST_JUNIT_OUTPUT_DIR: << pipeline.parameters.test_report_directory >>
@@ -386,31 +391,39 @@ workflows:
386391
# by a new tag must use a tag filter. Else the job does not get executed, no
387392
# matter its dependencies or anything else.
388393
jobs:
389-
- install
394+
- install:
395+
<<: *filter_release_tag
390396
- build_sdk:
397+
<<: *filter_release_tag
391398
requires:
392399
- install
393400
- build_dapp:
401+
<<: *filter_release_tag
394402
mode: production
395403
requires:
396404
- build_sdk
397405
- build_cli:
406+
<<: *filter_release_tag
398407
requires:
399408
- build_sdk
400409
- generate_documentation:
410+
<<: *filter_release_tag
401411
requires:
402412
- build_dapp
403413
- deploy_gh_pages:
414+
<<: *filter_release_tag
404415
public_path: /
405416
requires:
406417
- build_dapp
407418
- generate_documentation
408419
- approve_publish:
420+
<<: *filter_release_tag
409421
type: approval
410422
requires:
411423
- build_sdk
412424
- build_cli
413425
- publish_on_npm_registry:
426+
<<: *filter_release_tag
414427
context: 'Raiden Context'
415428
requires:
416429
- approve_publish

0 commit comments

Comments
 (0)