@automattic/vip 2.39.4 → 2.39.5
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.
|
@@ -212,9 +212,15 @@ Processing the file for deployment to your environment...
|
|
|
212
212
|
|
|
213
213
|
// Start the deploy
|
|
214
214
|
try {
|
|
215
|
+
const WPVIP_DEPLOY_TOKEN = process.env.WPVIP_DEPLOY_TOKEN;
|
|
215
216
|
const startDeployResults = await api.mutate({
|
|
216
217
|
mutation: START_DEPLOY_MUTATION,
|
|
217
|
-
variables: startDeployVariables
|
|
218
|
+
variables: startDeployVariables,
|
|
219
|
+
context: {
|
|
220
|
+
headers: {
|
|
221
|
+
Authorization: `Bearer ${WPVIP_DEPLOY_TOKEN}`
|
|
222
|
+
}
|
|
223
|
+
}
|
|
218
224
|
});
|
|
219
225
|
debug({
|
|
220
226
|
startDeployResults
|
|
@@ -321,7 +321,8 @@ async function getSignedUploadRequestData({
|
|
|
321
321
|
uploadId = undefined,
|
|
322
322
|
partNumber = undefined
|
|
323
323
|
}) {
|
|
324
|
-
const
|
|
324
|
+
const WPVIP_DEPLOY_TOKEN = process.env.WPVIP_DEPLOY_TOKEN;
|
|
325
|
+
const reqOptions = {
|
|
325
326
|
method: 'POST',
|
|
326
327
|
body: {
|
|
327
328
|
action,
|
|
@@ -332,7 +333,13 @@ async function getSignedUploadRequestData({
|
|
|
332
333
|
partNumber,
|
|
333
334
|
uploadId
|
|
334
335
|
}
|
|
335
|
-
}
|
|
336
|
+
};
|
|
337
|
+
if (WPVIP_DEPLOY_TOKEN) {
|
|
338
|
+
reqOptions.headers = {
|
|
339
|
+
Authorization: `Bearer ${WPVIP_DEPLOY_TOKEN}`
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
const response = await (0, _http.default)('/upload/site-import-presigned-url', reqOptions);
|
|
336
343
|
if (response.status !== 200) {
|
|
337
344
|
throw new Error((await response.text()) || response.statusText);
|
|
338
345
|
}
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 2.39.5
|
|
4
|
+
* Custom Deploys: Pass in deploy token to StartCustomDeploy mutation and allow `getSignedUploadRequestData()` to accept another bearer token
|
|
5
|
+
|
|
6
|
+
**Full Changelog**: https://github.com/Automattic/vip-cli/compare/2.39.4...2.39.5
|
|
7
|
+
|
|
8
|
+
### 2.39.4
|
|
9
|
+
* Dev-env: Hotfix mysql 8.4 being incompatible due to auth plugin deprecation
|
|
10
|
+
|
|
11
|
+
**Full Changelog**: https://github.com/Automattic/vip-cli/compare/2.39.3...2.39.4
|
|
12
|
+
|
|
3
13
|
### 2.39.3
|
|
4
14
|
|
|
5
15
|
* Update/docs pt vip config
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/vip",
|
|
3
|
-
"version": "2.39.
|
|
3
|
+
"version": "2.39.5",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@automattic/vip",
|
|
9
|
-
"version": "2.39.
|
|
9
|
+
"version": "2.39.5",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|