diff --git a/dist/index.js b/dist/index.js index 71d8bd6..b643bfd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -9756,7 +9756,7 @@ const elastic_apm_node_1 = __importDefault(__nccwpck_require__(20740)); //@ts-expect-error const noop_transport_1 = __nccwpck_require__(69184); const logger_1 = __nccwpck_require__(57129); -const environment = process.env.NODE_ENV || 'production'; +const environment = process.env.NODE_ENV || 'production-cli'; elastic_apm_node_1.default .start({ serviceName: 'backport', @@ -14274,7 +14274,7 @@ exports.maybe = maybe; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PACKAGE_VERSION = void 0; -exports.PACKAGE_VERSION = '8.9.5'; +exports.PACKAGE_VERSION = '8.9.6'; //# sourceMappingURL=packageVersion.js.map /***/ }), @@ -176331,6 +176331,7 @@ const core = __importStar(__nccwpck_require__(42186)); const backport_1 = __nccwpck_require__(76253); async function run({ context, inputs, }) { core.info('Initiate backport'); + process.env['NODE_ENV'] = 'production-github-action'; const { payload, repo, runId } = context; const pullRequest = payload.pull_request; if (!pullRequest) { diff --git a/dist/run.js b/dist/run.js index adf3082..75ccddb 100644 --- a/dist/run.js +++ b/dist/run.js @@ -28,6 +28,7 @@ const core = __importStar(require("@actions/core")); const backport_1 = require("backport"); async function run({ context, inputs, }) { core.info('Initiate backport'); + process.env['NODE_ENV'] = 'production-github-action'; const { payload, repo, runId } = context; const pullRequest = payload.pull_request; if (!pullRequest) { diff --git a/package.json b/package.json index 96db4fd..6a74936 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "backport-github-action", - "version": "8.9.5", + "version": "8.9.6", "private": true, "scripts": { "build": "yarn ncc build src/index.ts", @@ -15,7 +15,7 @@ "@actions/github": "^5.1.1", "@octokit/action": "^4.0.8", "@octokit/graphql": "^5.0.1", - "backport": "^8.9.5", + "backport": "^8.9.6", "husky": "^8.0.1" }, "devDependencies": { diff --git a/src/run.ts b/src/run.ts index a29d5ad..802c50d 100644 --- a/src/run.ts +++ b/src/run.ts @@ -15,6 +15,7 @@ export async function run({ }; }) { core.info('Initiate backport'); + process.env['NODE_ENV'] = 'production-github-action'; const { payload, repo, runId } = context; const pullRequest = payload.pull_request; diff --git a/yarn.lock b/yarn.lock index 9ab5ac0..6ca9808 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1482,10 +1482,10 @@ babel-preset-jest@^29.0.2: babel-plugin-jest-hoist "^29.0.2" babel-preset-current-node-syntax "^1.0.0" -backport@^8.9.5: - version "8.9.5" - resolved "https://registry.yarnpkg.com/backport/-/backport-8.9.5.tgz#d28d113189d16e1097977cef4000485e324e7eee" - integrity sha512-+FGXVMv4N1twQIbOEVkt4l/F/7uxjNK4SVOoKmO9PcVsTDuJBo71iDnmkTrXEzydbJOgwC7yHYZFun/+7Wx2tg== +backport@^8.9.6: + version "8.9.6" + resolved "https://registry.yarnpkg.com/backport/-/backport-8.9.6.tgz#721bca3279590ade2e21906c8cb023bf8124a950" + integrity sha512-RrC4pV/BSGg1oEJ4Y00ZpqISNLWvFB/LUkByqUlPFGPsQcYyda+18MbeZZ/VvSU9l3eNK6ZaPGEhz2piyZCBDg== dependencies: "@octokit/rest" "^19.0.4" axios "^1.1.2"