1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

repo metadata for netlify

This commit is contained in:
Matthias Kretschmann 2020-11-12 15:32:19 +01:00
parent d87e8dacb4
commit ad18926556
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -12,9 +12,11 @@ process.stdout.write(
JSON.stringify( JSON.stringify(
{ {
version: require('../package.json').version, version: require('../package.json').version,
branch: process.env.VERCEL_GITHUB_COMMIT_REF || 'dev', branch:
process.env.VERCEL_GITHUB_COMMIT_REF || process.env.BRANCH || 'dev',
commit: commit:
process.env.VERCEL_GITHUB_COMMIT_SHA || process.env.VERCEL_GITHUB_COMMIT_SHA ||
process.env.COMMIT_REF ||
execSync(`git rev-parse HEAD`).toString().trim() execSync(`git rev-parse HEAD`).toString().trim()
}, },
null, null,