Merge pull request #20017 from github/upgrade-esm
Enforce and Move to Top Level require
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
const dotenv = require('dotenv')
|
||||
|
||||
if (!process.env.GITHUB_TOKEN) {
|
||||
require('dotenv').config()
|
||||
dotenv.config()
|
||||
}
|
||||
|
||||
// this module needs to work in development, production, and GitHub Actions
|
||||
|
||||
Reference in New Issue
Block a user