chore(build): try to build demo and docs (#3434)
This commit is contained in:
1 parent
869b8ced05
commit
828690cd3b
329 files changed
+1896
-1010
No files matched your search
@@ -0,0 +1,13 @@
|
||||
console.log('preinstall.js');
|
||||
|
||||
const { exec } = require('child_process');
|
||||
const log = (err, stdout, stderr) => console.log(stdout);
|
||||
|
||||
const GITHUB_TOKEN = process.env.GITHUB_TOKEN;
|
||||
if (GITHUB_TOKEN) {
|
||||
const command = `git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf ssh://git@github.com/`;
|
||||
console.log(command);
|
||||
exec(command, log);
|
||||
} else {
|
||||
console.log('No GITHUB_TOKEN found, skipping private repo customization');
|
||||
}
|
||||
Reference in new issue
Block a user