Skip to content

Commit 1e320b7

Browse files
committed
Publish package on tagged releases
1 parent ff4dcb2 commit 1e320b7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ jobs:
117117
- name: Install dependencies
118118
run: npm install
119119

120+
- name: Publish to npm
121+
run: npm publish --access public
122+
env:
123+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
124+
120125
- name: Create GitHub Release
121126
uses: softprops/action-gh-release@v2
122127
with:

src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export function getAxiosInstance(config, testContext = null) {
115115
return response;
116116
}, error => {
117117
if (error.response) {
118-
const harEntry = createHarEntry(error.response.config, error.response);
118+
const harEntry = createHarEntry(t, error.response.config, error.response);
119119

120120
if (process.env.HAR_VIA_DIAGNOSTIC) {
121121
t?.diagnostic(harEntry);

0 commit comments

Comments
 (0)