@catladder/pipeline 1.75.1 → 1.75.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.
@@ -75,7 +75,7 @@ var yarn_1 = require("../node/yarn");
75
75
 
76
76
  var constants_1 = require("./constants");
77
77
 
78
- var getBuildInfo_1 = require("./getBuildInfo");
78
+ var writeBuildInfo_1 = require("./writeBuildInfo");
79
79
 
80
80
  var createBuildJob = function (context, _a) {
81
81
  var _b, _c, _d, _e;
@@ -92,7 +92,7 @@ var createBuildJob = function (context, _a) {
92
92
  needs: [],
93
93
  cache: [],
94
94
  variables: __assign(__assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), variables !== null && variables !== void 0 ? variables : {}), context.environment.envVars), (_b = context.componentConfig.build.extraVars) !== null && _b !== void 0 ? _b : {}),
95
- script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, getBuildInfo_1.getBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
95
+ script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, writeBuildInfo_1.writeBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
96
96
  artifacts: {
97
97
  paths: [(0, path_1.join)(context.componentConfig.dir, "__build_info.json")],
98
98
  reports: {
@@ -0,0 +1,2 @@
1
+ import type { Context } from "../../types";
2
+ export declare const writeBuildInfo: (context: Context) => string[];
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.getBuildInfo = void 0;
4
+ exports.writeBuildInfo = void 0;
5
5
 
6
- var getBuildInfo = function (context) {
6
+ var writeBuildInfo = function (context) {
7
7
  var _a, _b;
8
8
 
9
9
  return ["echo '{\"id\":\"".concat((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.buildId, "\",\"time\":\"").concat((_b = context.commitInfo) === null || _b === void 0 ? void 0 : _b.buildTime, "\"}' > ").concat(context.componentConfig.dir, "/__build_info.json")];
10
10
  };
11
11
 
12
- exports.getBuildInfo = getBuildInfo;
12
+ exports.writeBuildInfo = writeBuildInfo;