Cleanups and package refactoring

This commit is contained in:
Bassem Dghaidi
2024-10-24 05:19:48 -07:00
committed by GitHub
parent 89354f6540
commit 28dbd8ff93
7 changed files with 447 additions and 20 deletions
+9
View File
@@ -0,0 +1,9 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
const packageJson = require('../../../package.json')
/**
* Ensure that this User Agent String is used in all HTTP calls so that we can monitor telemetry between different versions of this package
*/
export function getUserAgentString(): string {
return `@actions/cache-${packageJson.version}`
}