@faable/faable 1.5.20 → 1.5.21

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.
@@ -28,18 +28,11 @@ const deploy = {
28
28
  const { api } = ctx;
29
29
  // Resolve runtime
30
30
  const { runtime } = await runtime_detection(workdir);
31
- let app;
32
- if (args.app_id) {
33
- app = await api.getApp(args.app_id);
34
- }
35
- else {
36
- if (ctx.appId) {
37
- app = await api.getApp(ctx.appId);
38
- }
39
- }
40
- if (!app) {
41
- throw new Error('Missing <app_id>');
31
+ const app_id = args.app_id || ctx.appId;
32
+ if (!app_id) {
33
+ throw new Error('Missing <app_id>, run inside github action or pass <app_id> after deploy command');
42
34
  }
35
+ const app = await api.getApp(app_id);
43
36
  // Check if we can build docker images
44
37
  await check_environment();
45
38
  log.info(`🚀 Deploying "${app.name}" (${app.id}) runtime=${runtime.name}-${runtime.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/faable",
3
- "version": "1.5.20",
3
+ "version": "1.5.21",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",