Fix publish_release not running on release tags correctly.

Summary:
During RN 0.69 we realized that we're failing to publish a version.
The reason is that only the `prepare_hermes_workspace` was executed
after a TAG got published.

The problem is a missing `filter:` key which made CircleCI skipping
some steps for a tag. Here I'm fixing it.

Run for 0.69.0-rc0 (broken)
https://app.circleci.com/pipelines/github/facebook/react-native/13123/workflows/3cb781d2-f81c-4856-9686-2260c020c3bd
Run for 0.68.1
https://app.circleci.com/pipelines/github/facebook/react-native/12938/workflows/a1bcf306-9d81-4149-9d4a-bc7b988fb53f

Changelog:
[Internal] [Changed] - Fix publish_release not running on release tags correctly

Reviewed By: hramos

Differential Revision: D36005374

fbshipit-source-id: 5664369f008e60e334c1db5fa2e7c3089369d7ad
This commit is contained in:
Nicola Corti 2022-04-28 10:44:06 -07:00 коммит произвёл Facebook GitHub Bot
Родитель b873a4f4f7
Коммит 07a63a2376
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -1273,12 +1273,15 @@ workflows:
- prepare_hermes_workspace: - prepare_hermes_workspace:
filters: *only_release_tags filters: *only_release_tags
- build_hermesc_linux: - build_hermesc_linux:
filters: *only_release_tags
requires: requires:
- prepare_hermes_workspace - prepare_hermes_workspace
- build_hermesc_macos: - build_hermesc_macos:
filters: *only_release_tags
requires: requires:
- prepare_hermes_workspace - prepare_hermes_workspace
- build_hermesc_windows: - build_hermesc_windows:
filters: *only_release_tags
requires: requires:
- prepare_hermes_workspace - prepare_hermes_workspace
# This job will trigger when a version tag is pushed (by package_release) # This job will trigger when a version tag is pushed (by package_release)