@naturalcycles/backend-lib 5.0.1 → 5.0.2

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.
@@ -22,7 +22,6 @@ async function deployGae(opt = {}) {
22
22
  gaeService,
23
23
  gaeVersion,
24
24
  });
25
- (0, nodejs_lib_1.appendToGithubSummary)(`[versionUrl](${versionUrl})`);
26
25
  await (0, js_lib_1.pRetry)(async () => {
27
26
  try {
28
27
  (0, nodejs_lib_1.execVoidCommandSync)(`gcloud app deploy ${appYamlPath} --project ${gaeProject} --version ${gaeVersion} --quiet --no-promote`, [], { shell: true });
@@ -53,6 +52,7 @@ async function deployGae(opt = {}) {
53
52
  // yarn deploy-health-check --url $deployInfo_serviceUrl --repeat 3 --timeoutSec 60 --intervalSec 2
54
53
  await (0, deployHealthCheck_1.deployHealthCheck)(serviceUrl, opt);
55
54
  }
55
+ (0, nodejs_lib_1.appendToGithubSummary)(`Deployed ${serviceUrl}`);
56
56
  // Logs
57
57
  if (logOnSuccess) {
58
58
  logs(gaeProject, gaeService, gaeVersion);
@@ -73,6 +73,7 @@ async function undeployGae(branch) {
73
73
  // }
74
74
  console.log(`undeployGae (branch: ${branch}): going to remove ${gaeProject}/${gaeService}/${gaeVersion}`);
75
75
  (0, nodejs_lib_1.execVoidCommandSync)(`gcloud app versions delete --project ${gaeProject} --service ${gaeService} ${gaeVersion} --quiet`, [], { shell: true });
76
+ (0, nodejs_lib_1.appendToGithubSummary)(`removed ${gaeProject}/${gaeService}/${gaeVersion}`);
76
77
  }
77
78
  exports.undeployGae = undeployGae;
78
79
  function logs(gaeProject, gaeService, gaeVersion) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/backend-lib",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "dev": "APP_ENV=dev nodemon",
@@ -29,8 +29,6 @@ export async function deployGae(opt: DeployGaeOptions = {}): Promise<void> {
29
29
  gaeVersion,
30
30
  })
31
31
 
32
- appendToGithubSummary(`[versionUrl](${versionUrl})`)
33
-
34
32
  await pRetry(
35
33
  async () => {
36
34
  try {
@@ -75,6 +73,8 @@ export async function deployGae(opt: DeployGaeOptions = {}): Promise<void> {
75
73
  await deployHealthCheck(serviceUrl, opt)
76
74
  }
77
75
 
76
+ appendToGithubSummary(`Deployed ${serviceUrl}`)
77
+
78
78
  // Logs
79
79
  if (logOnSuccess) {
80
80
  logs(gaeProject, gaeService, gaeVersion)
@@ -105,6 +105,8 @@ export async function undeployGae(branch: string): Promise<void> {
105
105
  [],
106
106
  { shell: true },
107
107
  )
108
+
109
+ appendToGithubSummary(`removed ${gaeProject}/${gaeService}/${gaeVersion}`)
108
110
  }
109
111
 
110
112
  function logs(gaeProject: string, gaeService: string, gaeVersion: string): void {