1
0
mirror of synced 2025-12-20 02:19:14 -05:00

Merge pull request #20017 from github/upgrade-esm

Enforce and Move to Top Level require
This commit is contained in:
Grace Park
2021-06-22 11:27:48 -07:00
committed by GitHub
parent efcb508de8
commit d3d1902414
26 changed files with 106 additions and 71 deletions

View File

@@ -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