wp-blank-scripts 2.6.10 → 2.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/deployProject.js +1 -1
- package/package.json +1 -1
- package/utils/deploySQLFromCI.js +8 -1
package/lib/deployProject.js
CHANGED
package/package.json
CHANGED
package/utils/deploySQLFromCI.js
CHANGED
|
@@ -5,10 +5,17 @@ const getSettings = require('./projectSettings');
|
|
|
5
5
|
|
|
6
6
|
const DEPLOY_URL = 'https://57e5-60-241-189-248.au.ngrok.io/prod/deploy';
|
|
7
7
|
|
|
8
|
-
async function deploySQLFromCI() {
|
|
8
|
+
async function deploySQLFromCI(options) {
|
|
9
9
|
const { default: fetch } = await import('node-fetch');
|
|
10
10
|
const file = getMostRecentSqlFile(true);
|
|
11
11
|
console.log({ file, repo });
|
|
12
|
+
|
|
13
|
+
await replaceSQL({
|
|
14
|
+
environmentIn: 'local',
|
|
15
|
+
environmentOut: options.environment,
|
|
16
|
+
file,
|
|
17
|
+
});
|
|
18
|
+
|
|
12
19
|
const sql = fs.readFileSync(file, 'utf8');
|
|
13
20
|
|
|
14
21
|
const response = await fetch(DEPLOY_URL, {
|