@adobe/helix-deploy 11.0.13 → 11.0.15
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/CHANGELOG.md +14 -0
- package/package.json +4 -4
- package/src/deploy/GoogleDeployer.js +21 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [11.0.15](https://github.com/adobe/helix-deploy/compare/v11.0.14...v11.0.15) (2024-04-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* assert deployer is ready before invoking ([#685](https://github.com/adobe/helix-deploy/issues/685)) ([a02323f](https://github.com/adobe/helix-deploy/commit/a02323f7c66c3b2334018e3de140482e85d759b1))
|
|
7
|
+
|
|
8
|
+
## [11.0.14](https://github.com/adobe/helix-deploy/compare/v11.0.13...v11.0.14) (2024-03-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#684](https://github.com/adobe/helix-deploy/issues/684)) ([c864f18](https://github.com/adobe/helix-deploy/commit/c864f18241fc4063551a210067890c9c435965ba))
|
|
14
|
+
|
|
1
15
|
## [11.0.13](https://github.com/adobe/helix-deploy/compare/v11.0.12...v11.0.13) (2024-03-30)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-deploy",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.15",
|
|
4
4
|
"description": "Library and Commandline Tools to build and deploy OpenWhisk Actions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/adobe/helix-deploy#readme",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"@aws-sdk/client-apigatewayv2": "3.540.0",
|
|
44
44
|
"@aws-sdk/client-lambda": "3.540.0",
|
|
45
45
|
"@aws-sdk/client-s3": "3.540.0",
|
|
46
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
46
|
+
"@aws-sdk/client-secrets-manager": "3.543.0",
|
|
47
47
|
"@aws-sdk/client-ssm": "3.540.0",
|
|
48
48
|
"@aws-sdk/client-sts": "3.540.0",
|
|
49
|
-
"@fastly/js-compute": "3.
|
|
49
|
+
"@fastly/js-compute": "3.12.0",
|
|
50
50
|
"@google-cloud/functions": "3.2.0",
|
|
51
51
|
"@google-cloud/secret-manager": "5.2.0",
|
|
52
52
|
"@google-cloud/storage": "7.9.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"eslint": "8.57.0",
|
|
79
79
|
"husky": "9.0.11",
|
|
80
80
|
"lint-staged": "15.2.2",
|
|
81
|
-
"mocha": "10.
|
|
81
|
+
"mocha": "10.4.0",
|
|
82
82
|
"mocha-junit-reporter": "2.2.1",
|
|
83
83
|
"mocha-multi-reporters": "1.5.1",
|
|
84
84
|
"nock": "13.5.4",
|
|
@@ -38,7 +38,7 @@ export default class GoogleDeployer extends BaseDeployer {
|
|
|
38
38
|
return false;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
return !!this.
|
|
41
|
+
return !!this._cfg.projectID && !!this._cfg.keyFile;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
validate() {
|
|
@@ -48,20 +48,22 @@ export default class GoogleDeployer extends BaseDeployer {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
async init() {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
51
|
+
if (this.ready() && !this._client) {
|
|
52
|
+
try {
|
|
53
|
+
this._client = new CloudFunctionsServiceClient({
|
|
54
|
+
email: this._cfg.email,
|
|
55
|
+
keyFilename: this._keyFilename,
|
|
56
|
+
projectId: this._cfg.projectID,
|
|
57
|
+
});
|
|
58
|
+
this._secretclient = new SecretManagerServiceClient({
|
|
59
|
+
email: this._cfg.email,
|
|
60
|
+
keyFilename: this._keyFilename,
|
|
61
|
+
projectId: this._cfg.projectID,
|
|
62
|
+
});
|
|
63
|
+
} catch (e) {
|
|
64
|
+
this.log.error(chalk`{red error:} Unable to authenticate with Google: ${e.message}`);
|
|
65
|
+
throw e;
|
|
66
|
+
}
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
|
|
@@ -268,6 +270,10 @@ export default class GoogleDeployer extends BaseDeployer {
|
|
|
268
270
|
}
|
|
269
271
|
|
|
270
272
|
async cleanup() {
|
|
273
|
+
if (!this._client) {
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
|
|
271
277
|
try {
|
|
272
278
|
const [allfns] = await this._client.listFunctions({
|
|
273
279
|
parent: `projects/${this._cfg.projectID}/locations/${this._cfg.region}`,
|