From a5079987bb7293f24edcc2dd2577e9c0ae00e1ae Mon Sep 17 00:00:00 2001 From: Luna Wei Date: Fri, 12 Nov 2021 11:31:21 -0800 Subject: [PATCH] Trigger rn-diff-purge action from release publish Summary: Changelog: [Internal] - Trigger rn-diff-purge action from release publish Reviewed By: cortinico Differential Revision: D32335711 fbshipit-source-id: 29d9910d7b013b612d1d423ce960782dc8c6cd4c --- .circleci/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4598e5473d74ea..dc4cb617687c7e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -800,6 +800,18 @@ jobs: name: Post link to PR build artifacts (pull-bot) command: GITHUB_TOKEN="$PUBLIC_PULLBOT_GITHUB_TOKEN_A""$PUBLIC_PULLBOT_GITHUB_TOKEN_B" scripts/circleci/post-artifacts-link.sh || true + - when: + condition: + equal: [ --release, << parameters.publish_npm_args >> ] + steps: + - run: + name: Update rn-diff-purge to generate upgrade-support diff + command: | + curl -X POST https://api.github.com/repos/react-native-community/rn-diff-purge/dispatches \ + -H "Accept: application/vnd.github.v3+json" \ + -u "$PAT_USERNAME:$PAT_TOKEN" \ + -d "{\"event_type\": \"publish\", \"client_payload\": { \"version\": \"${CIRCLE_TAG:1}\" }}" + # ------------------------- # JOBS: Nightly # ------------------------- @@ -898,6 +910,7 @@ workflows: jobs: - build_npm_package: name: build_and_publish_npm_package + context: react-native-bot publish_npm_args: --release filters: # Both of the following conditions must be included!