diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c1437499..8ef85fb9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -48,10 +48,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - with: - persist-credentials: false - name: Yarn install run: yarn + - name: Set app version variable + run: export NEXT_PUBLIC_APP_VERSION=$(git tag | grep -E '^v[0-9]' | sort -V | tail -1) - name: Run build run: | yarn workspace @mach/common build diff --git a/packages/front/components/footer-nav.tsx b/packages/front/components/footer-nav.tsx index ae6aa223..75d46686 100644 --- a/packages/front/components/footer-nav.tsx +++ b/packages/front/components/footer-nav.tsx @@ -9,7 +9,7 @@ const FooterNav: React.FC = () => { - Mach v4.1.0 + Mach {process.env.NEXT_PUBLIC_APP_VERSION}