Skip to content

Commit

Permalink
chore: test release
Browse files Browse the repository at this point in the history
  • Loading branch information
liorzblrn committed Aug 13, 2024
1 parent 31bfa47 commit bfbece9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ jobs:
commitMessage: 'chore: publish changeset'
username: 'devops'
email: 'devops@dballerine.com'
# script to be used to publish the pr (changeset version by default)
versionScript: changeset version
# script to be used to publish the pr
publishScript: changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,11 @@ export class ApiPlugin {
};

if (payload) {
const returnObj = { ...payload };
const apiPluginInstance = this;
await Promise.all(
Object.keys(returnObj).map(async key => {
if (typeof returnObj[key] === 'string') {
returnObj[key] = await apiPluginInstance.replaceValuePlaceholders(
returnObj[key] as string,
returnObj,
);
}
}),
);
for (const key of Object.keys(payload)) {
if (typeof payload[key] === 'string') {
payload[key] = await this.replaceValuePlaceholders(payload[key] as string, payload);
}
}

// @TODO: Use an enum over string literals for HTTP methods
if (this.method.toUpperCase() !== 'GET') {
Expand Down

0 comments on commit bfbece9

Please sign in to comment.