Skip to content

Commit

Permalink
Merge pull request #1774 from api3dao/fix-release-scripts
Browse files Browse the repository at this point in the history
Minor changes to release scripts due to library updates
  • Loading branch information
amarthadan authored May 22, 2023
2 parents 9193df3 + 7d34b26 commit 86ac79f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .changeset/rich-onions-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
8 changes: 5 additions & 3 deletions docker/scripts/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ yargs(process.argv.slice(2))
handleCliCommand({
success: false,
error: new Error('Either provide the release Git branch or mount the Airnode source code directory'),
data: undefined,
});
return;
}
Expand All @@ -95,6 +96,7 @@ yargs(process.argv.slice(2))
error: new Error(
`Can't provide the release Git branch and mount the Airnode source code directory at the same time`
),
data: undefined,
});
return;
}
Expand Down Expand Up @@ -155,7 +157,7 @@ yargs(process.argv.slice(2))
},
(args) => {
logger.log(`Running command '${args._[0]} ${args._[1]}' with arguments ${longArguments(args)}`);
runCliCommand(() => publish(args.npmRegistry, args.npmTags, args.releaseBranch));
runCliCommand(() => publish(args.npmRegistry, args.npmTags as string[], args.releaseBranch));
}
)
.help()
Expand Down Expand Up @@ -195,7 +197,7 @@ yargs(process.argv.slice(2))
},
(args) => {
logger.log(`Running command '${args._[0]} ${args._[1]}' with arguments ${longArguments(args)}`);
runCliCommand(() => buildDockerImages(args.npmRegistry, args.npmTag, args.dockerTags, args.dev));
runCliCommand(() => buildDockerImages(args.npmRegistry, args.npmTag, args.dockerTags as string[], args.dev));
}
)
.command(
Expand All @@ -217,7 +219,7 @@ yargs(process.argv.slice(2))
},
(args) => {
logger.log(`Running command '${args._[0]} ${args._[1]}' with arguments ${longArguments(args)}`);
runCliCommand(() => publishDockerImages(args.dockerTags, args.dev));
runCliCommand(() => publishDockerImages(args.dockerTags as string[], args.dev));
}
)
.help()
Expand Down

0 comments on commit 86ac79f

Please sign in to comment.