mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user