ci(release): make React Doctor check advisory

The release preflight ran yarn doctor --diff against the previous tag as a
hard gate, but many error-level diagnostics flag intentional patterns rather
than bugs (e.g. resetting preview state when the reply modal closes, mirroring
long-accepted code). Mark the step continue-on-error so it still runs and posts
annotations without blocking a release.
This commit is contained in:
Tommaso Casaburi
2026-06-13 18:25:53 +07:00
parent 591aaa729f
commit f53bd0f6e5
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -43,7 +43,11 @@ jobs:
run: yarn type-check
- name: Build React app
run: CI='' NODE_ENV=production yarn build
- name: Run React Doctor
# Advisory only: React Doctor still runs and posts annotations for the diff
# since the previous tag, but a new finding must not block a release. Many
# error-level diagnostics flag intentional patterns, not bugs.
- name: Run React Doctor (advisory)
continue-on-error: true
run: |
PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^)
yarn doctor --diff "$PREVIOUS_TAG" --annotations