Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Default value for release attribute should be refined to git hash or package version #343

Closed
niftylettuce opened this issue Jul 23, 2017 · 0 comments

Comments

@niftylettuce
Copy link

niftylettuce commented Jul 23, 2017

We can use https://github.com/pddivine/node-root.pddivine to get the root dir, and then use require('child_process').execSync('git rev-parse HEAD').toString().trim() to get the git revision or lookup version in package.json file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant