File tree 2 files changed +12
-4
lines changed 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 21
21
run : yarn
22
22
- name : Run doc generation (devsite docs)
23
23
run : yarn docgen devsite
24
- - name : Check for changes (fail if so)
25
- run : |
26
- cd docs-devsite
27
- git diff --exit-code
24
+ - name : Check for changes in docs-devsite dir (fail if so)
25
+ run : git diff --exit-code docs-devsite
28
26
- name : Reference documentation needs to be updated. See message below.
29
27
if : ${{ failure() }}
30
28
run : echo "Changes in this PR affect the reference docs. Run \`yarn docgen devsite\` locally to regenerate docs and add them to this PR."
Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ async function generateDocs(
136
136
`${ projectRoot } /packages/auth/api-extractor.json` ,
137
137
'utf8'
138
138
) ;
139
+ // Save original auth.md as well.
140
+ const authApiReportOriginal = fs . readFileSync (
141
+ `${ projectRoot } /common/api-review/auth.api.md` ,
142
+ 'utf8'
143
+ ) ;
139
144
const authApiConfigModified = authApiConfigOriginal . replace (
140
145
`"mainEntryPointFilePath": "<projectFolder>/dist/esm5/index.d.ts"` ,
141
146
`"mainEntryPointFilePath": "<projectFolder>/dist/esm5/index.doc.d.ts"`
@@ -173,6 +178,11 @@ async function generateDocs(
173
178
`${ projectRoot } /packages/auth/api-extractor.json` ,
174
179
authApiConfigOriginal
175
180
) ;
181
+ // Restore original auth.api.md
182
+ fs . writeFileSync (
183
+ `${ projectRoot } /common/api-review/auth.api.md` ,
184
+ authApiReportOriginal
185
+ ) ;
176
186
177
187
if ( ! fs . existsSync ( tmpDir ) ) {
178
188
fs . mkdirSync ( tmpDir ) ;
You can’t perform that action at this time.
0 commit comments