From 21f370c33b59a824e69f3ea7c9609a77dfef55d2 Mon Sep 17 00:00:00 2001 From: yutaoj <105471132+yutaoj@users.noreply.github.com> Date: Wed, 15 Nov 2023 10:09:18 +0800 Subject: [PATCH] add hold-for-approval in circleci (#1098) Co-authored-by: Jiang, Yu-tao --- .circleci/config.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index eb2e952d..5132da3f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1001,15 +1001,7 @@ workflows: only: /release/ branches: ignore: /.*/ - # - release-to-github: - # requires: - # - test - # filters: - # tags: - # only: /release/ - # branches: - # ignore: /.*/ - - publish-to-npm: + - release-to-github: requires: # - release-to-github - test @@ -1018,6 +1010,23 @@ workflows: only: /release/ branches: ignore: /.*/ + - hold-for-approval: + type: approval + requires: + - release-to-github + filters: + tags: + only: /release/ + branches: + ignore: /.*/ + - publish-to-npm: + requires: + - hold-for-approval + filters: + tags: + only: /release/ + branches: + ignore: /.*/ - publish-to-dockerhub-java8-node14: requires: - publish-to-npm