test release tag v2

This commit is contained in:
yazninja 2022-05-21 13:05:01 +08:00
parent 9223c99333
commit b69783b1c9
2 changed files with 4 additions and 4 deletions

View file

@ -159,9 +159,9 @@ jobs:
- run: - run:
name: Fix Versioning and Add Channel name: Fix Versioning and Add Channel
command: yarn circle:script command: yarn circle:script
- run: # - run:
name: Set App Version # name: Set App Version
command: echo "export APP_VERSION=$(grep '"version":.*' package.json | cut -d '"' -f 4 | head -1)" >> $BASH_ENV # command: echo "export APP_VERSION=$(grep '"version":.*' package.json | cut -d '"' -f 4 | head -1)" >> $BASH_ENV
- run: - run:
name: Publish Release name: Publish Release
command: | command: |

View file

@ -34,7 +34,7 @@ pkg.publish = {
const {exec} = require('child_process') const {exec} = require('child_process')
exec('echo $APP_VERSION', {env: {'APP_VERSION': pkg.version}}, function (error, stdout, stderr) { exec(`export APP_VERSION=${pkg.version} && echo $APP_VERSION`, {env: {'APP_VERSION': pkg.version}}, function (error, stdout, stderr) {
console.log(stdout, stderr, error); console.log(stdout, stderr, error);
}); });