Skip to content

Commit

Permalink
chore: fix circleci publish_production pipeline on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevmatos committed Jun 30, 2022
1 parent 0372acc commit 792d5ee
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ parameters:
anchor_1: &attach_options
at: << pipeline.parameters.working_directory >>

anchor_2: &executor_shared_options
anchor_2: &filter_release_tag
filters:
tags:
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-]+)*))?$/

anchor_3: &executor_shared_options
working_directory: << pipeline.parameters.working_directory >>
environment:
JEST_JUNIT_OUTPUT_DIR: << pipeline.parameters.test_report_directory >>
Expand Down Expand Up @@ -386,31 +391,39 @@ workflows:
# by a new tag must use a tag filter. Else the job does not get executed, no
# matter its dependencies or anything else.
jobs:
- install
- install:
<<: *filter_release_tag
- build_sdk:
<<: *filter_release_tag
requires:
- install
- build_dapp:
<<: *filter_release_tag
mode: production
requires:
- build_sdk
- build_cli:
<<: *filter_release_tag
requires:
- build_sdk
- generate_documentation:
<<: *filter_release_tag
requires:
- build_dapp
- deploy_gh_pages:
<<: *filter_release_tag
public_path: /
requires:
- build_dapp
- generate_documentation
- approve_publish:
<<: *filter_release_tag
type: approval
requires:
- build_sdk
- build_cli
- publish_on_npm_registry:
<<: *filter_release_tag
context: 'Raiden Context'
requires:
- approve_publish

0 comments on commit 792d5ee

Please sign in to comment.