From ecae245c0911171a9f59bc81186d070a9af3ff66 Mon Sep 17 00:00:00 2001 From: vec Date: Sat, 16 Dec 2023 11:12:54 +0800 Subject: [PATCH] [add] build description --- .github/workflows/release-dev.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-dev.yml b/.github/workflows/release-dev.yml index e64e2f3e..691aadcb 100644 --- a/.github/workflows/release-dev.yml +++ b/.github/workflows/release-dev.yml @@ -28,7 +28,8 @@ jobs: NODE_ENV: development run: | cd front - printf "${{secrets.FRONT_ENV_DEVELOPMENT}}" > ./.env.development + echo "${{secrets.FRONT_ENV_DEVELOPMENT}}" > ./.env.development + echo "REACT_APP_BUILD_DESCRIPTION=Development version. build:${{ github.run_number }} commit:${{ github.sha }}" >> ./.env.production yarn install --production=false yarn build:development mv build ../ @@ -43,8 +44,7 @@ jobs: NODE_ENV: development run: | cd dashboard - echo "${{secrets.DASHBOARD_ENV_DEVELOPMENT}}" > ./.env.production - echo "REACT_APP_BUILD_DESCRIPTION=Development version. build:${{ github.run_number }} commit:${{ github.sha }}" >> ./.env.production + echo "${{secrets.DASHBOARD_ENV_DEVELOPMENT}}\n" > ./.env.production npm install npm run build:prod mv dist dashboard