Skip to content

Commit 603dbd7

Browse files
authored
Release 5.5.4 (#242)
* 5.5.3 -> 5.5.4-SNAPSHOT * Remove GitHub packages registry publishing * EPMRPP-109375 || Fix the default agent params overriding via 'restClientConfig.agent' option (#241) * Update changelog --------- Co-authored-by: reportportal.io <reportportal.io>
2 parents 359463e + 781ed81 commit 603dbd7

File tree

4 files changed

+10
-20
lines changed

4 files changed

+10
-20
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 EPAM Systems
1+
# Copyright 2025 EPAM Systems
22
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
@@ -19,7 +19,7 @@ on:
1919

2020
permissions:
2121
id-token: write # Required for NPM OIDC
22-
contents: write
22+
contents: read
2323

2424
jobs:
2525
build:
@@ -38,7 +38,7 @@ jobs:
3838
- name: Run tests and check coverage
3939
run: npm run test:coverage
4040

41-
publish-to-npm-and-gpr:
41+
publish-to-npm:
4242
needs: build
4343
runs-on: ubuntu-latest
4444
steps:
@@ -55,17 +55,3 @@ jobs:
5555
run: |
5656
npm config list
5757
npm publish --access public
58-
- name: Set up Node.js
59-
uses: actions/setup-node@v6
60-
with:
61-
node-version: 24
62-
registry-url: 'https://npm.pkg.github.com'
63-
scope: '@reportportal'
64-
- name: Publish to GPR
65-
run: |
66-
npm config set //npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN
67-
npm config set scope '@reportportal'
68-
npm config list
69-
npm publish
70-
env:
71-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
### Fixed
2+
- The default agent params overriding via `restClientConfig.agent`. Fixes [agent-js-playwright#193](https://github.com/reportportal/agent-js-playwright/issues/193).
13

24
## [5.5.3] - 2025-11-06
35
### Changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.5.3
1+
5.5.4-SNAPSHOT

lib/rest.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@ class RestClient {
6565

6666
request(method, url, data, options = {}) {
6767
// Only apply proxy agents if custom agents are not explicitly provided
68-
// Priority: explicit httpsAgent/httpAgent > proxy config > default
68+
// Priority: explicit httpsAgent/httpAgent/agent > proxy config > default
6969
const hasCustomAgents =
7070
this.restClientConfig &&
71-
('httpsAgent' in this.restClientConfig || 'httpAgent' in this.restClientConfig);
71+
('httpsAgent' in this.restClientConfig ||
72+
'httpAgent' in this.restClientConfig ||
73+
'agent' in this.restClientConfig);
7274
const proxyAgents = hasCustomAgents ? {} : getProxyAgentForUrl(url, this.restClientConfig);
7375
const usingProxyAgent = Object.keys(proxyAgents).length > 0;
7476

0 commit comments

Comments
 (0)