chore(ci): run TypeDoc generation in Code Quality Checks action #4345
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issues
Fixes #4321
Description
This PR adds TypeDoc generation in the Code Quality Checks action. In PR #4306, a typedoc failure was causing the Vercel deployment phase to fail, and those logs aren't public.
There were a few challenges that required decisions:
typedoc
is a dependency ofwebsite/
, which is not part of the lerna/workspace, so its dependencies are not installed in current actions.Yarn Install (Website)
stage, with the existing retry pattern.-with-website
) since additional packages are installed. Not certain this is correct, so be sure to reviewtypedoc
as a root dependency, or do a one-offyarn add typedoc
in the CI actionscripts/generate-typedoc.js
script that is no longer used. It did not receive the recent typedoc changes that thewebsite/scripts/generate-typedoc.js
file did, so it is not currently functional.website/scripts/generate-typedoc.js
file is not a callable script.node -e "require('./website/scripts/generate-typedoc').generateTypedoc()"
scripts/generate-typedoc.js
file as a callable script, or alter thewebsite/scripts/generate-typedoc.js
to be more flexibleThanks for reviewing!
Release Summary
N/A
Checklist
Android
(N/A)iOS
(N/A)e2e
tests added or updated inpackages/\*\*/e2e
(N/A)jest
tests added or updated inpackages/\*\*/__tests__
(N/A)Test Plan
CI actions
https://github.com/invertase/react-native-firebase/pull/4345/checks?check_run_id=1196025300
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter