Add no-cache option

This commit is contained in:
Max schwenk 2024-02-09 10:54:43 -05:00
parent 8642d99a51
commit 01dacaa127
4 changed files with 22 additions and 14 deletions

View file

@ -22,6 +22,7 @@ export type Input = {
profile?: boolean;
scope?: string;
registryUrl?: string;
disableCache?: boolean;
};
export type Output = {
@ -113,7 +114,10 @@ export default async (options: Input): Promise<Output> => {
};
function isCacheEnabled(options: Input): boolean {
const { customUrl, version } = options;
const { customUrl, version, disableCache } = options;
if (disableCache) {
return false;
}
if (customUrl) {
return false;
}