Skip to content

Commit

Permalink
Use NPM to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Xantier committed Apr 7, 2023
1 parent b1bbfe5 commit 01348d5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-olives-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@roadiehq/roadie-agent': patch
---

Move publish to CI
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "roadie-bot"
yarn publish
npm publish
# Creates the next available tag with format "release-<year>-<month>-<day>[.<n>]"
- name: Create a release tag
id: create_tag
Expand Down
14 changes: 10 additions & 4 deletions src/lib/RoadieAgentForwarder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ export class RoadieAgentForwarder {
'Content-Type': 'application/json',
},
});
const responseBody = await response.text();
this.logger.info(
`Received response from forwarder mutation. Status: ${response.status}, ${response.statusText}. Body: ${responseBody}`,
);
try {
const responseBody = await response.text();
this.logger.info(
`Received response from forwarder mutation. Status: ${response.status}, ${response.statusText}. Body: ${responseBody}`,
);
} catch (e) {
this.logger.warn(
`No Response received from forwarder mutation. Status: ${response?.status}, ${response?.statusText}.`,
);
}
};
}
}

0 comments on commit 01348d5

Please sign in to comment.