export app version to bashenv
This commit is contained in:
parent
883c10f218
commit
323d3fc05a
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ pkg.publish = {
|
||||||
|
|
||||||
const {exec} = require('child_process')
|
const {exec} = require('child_process')
|
||||||
|
|
||||||
exec(`export APP_VERSION=${pkg.version} && echo $APP_VERSION`, {env: {'APP_VERSION': pkg.version}}, function (error, stdout, stderr) {
|
exec(`echo "export APP_VERSION=${pkg.version}" >> $BASH_ENV && echo $APP_VERSION`, {env: {'APP_VERSION': pkg.version}}, function (error, stdout, stderr) {
|
||||||
console.log(stdout, stderr, error);
|
console.log(stdout, stderr, error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue