Skip to content

Commit

Permalink
feat(front): add automatic version resolution on footer
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed Apr 28, 2021
1 parent 0c5c36a commit 95a27c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/front/components/footer-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const FooterNav: React.FC = () => {
</Nav.Item>
<Nav.Item>
<Nav.Link href="https://www.github.com/jpedroh/mach" target="_blank">
Mach v4.1.0
Mach {process.env.NEXT_PUBLIC_APP_VERSION}
</Nav.Link>
</Nav.Item>
<Nav.Item>
Expand Down

0 comments on commit 95a27c0

Please sign in to comment.