File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,20 @@ const processUpcomingChanges = require('./utils/process-upcoming-changes')
15
15
const processSchemas = require ( './utils/process-schemas' )
16
16
const prerenderObjects = require ( './utils/prerender-objects' )
17
17
18
+ // check for required PAT
19
+ if ( ! process . env . GITHUB_TOKEN ) {
20
+ console . error ( 'Error! You must have a GITHUB_TOKEN set in an .env file to run this script.' )
21
+ process . exit ( 1 )
22
+ }
23
+
24
+ // check for required Ruby gems (see note below about why this is needed)
25
+ try {
26
+ execSync ( 'gem which graphql' )
27
+ } catch ( err ) {
28
+ console . error ( '\nYou need to run: bundle install' )
29
+ process . exit ( 1 )
30
+ }
31
+
18
32
// TODO this step is only required as long as we support GHE versions *OLDER THAN* 2.21
19
33
// as soon as 2.20 is deprecated on 2021-02-11, we can remove all graphql-ruby filtering
20
34
const removeHiddenMembersScript = path . join ( __dirname , './utils/remove-hidden-schema-members.rb' )
You can’t perform that action at this time.
0 commit comments