We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dffc020 commit 81e5966Copy full SHA for 81e5966
index.js
@@ -9,7 +9,7 @@ try {
9
const jsonPackageFile = JSON.parse(fs.readFileSync(path.resolve(process.env.GITHUB_WORKSPACE, packagePath || 'package.json')))
10
const regexp = new RegExp(`"name":"${jsonPackageFile.name}","version":".*?",`, 'g')
11
const jsonLockFile = fs.readFileSync(path.resolve(process.env.GITHUB_WORKSPACE, lockPath || 'package-lock.json')).toString(('utf-8')).replace(/\n|\s|\r|\t/g, '').replace(regexp, '')
12
-
+ console.log(jsonLockFile.slice(0, 250))
13
core.setOutput('cacheKey', crypto.createHash('sha256').update(jsonLockFile, 'utf8').digest('hex'));
14
} catch (error) {
15
core.setFailed(error.message);
0 commit comments