Skip to content

Commit 9f6389a

Browse files
committed
feat: add version bump step and display app version in footer
1 parent 0291ef6 commit 9f6389a

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
- name: Install dependencies
3232
run: npm ci --legacy-peer-deps
3333

34+
- name: Bump patch version
35+
run: npm version patch --no-git-tag-version
36+
3437
- name: Build for GitHub Pages
3538
run: npm run build:gh-pages
3639

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-tailwind-template",
3-
"version": "0.0.0",
3+
"version": "1.0.0",
44
"description": "D-Stack Ready Angular 19 Enterprise Template with Tailwind CSS, NgRx, DSGVO compliance, and 25+ production-ready components for German government and public administration",
55
"keywords": [
66
"angular",
@@ -41,6 +41,9 @@
4141
"build:gh-pages": "ng build --base-href /angular-tailwind-template/",
4242
"watch": "ng build --watch --configuration development",
4343
"test": "ng test",
44+
"version:patch": "npm version patch --no-git-tag-version",
45+
"version:minor": "npm version minor --no-git-tag-version",
46+
"version:major": "npm version major --no-git-tag-version",
4447
"format": "prettier --write \"src/**/*.{ts,html,scss,css,json}\"",
4548
"format:check": "prettier --check \"src/**/*.{ts,html,scss,css,json}\"",
4649
"lint": "ng lint",

src/app/core/footer/footer.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@
8989
Impressum
9090
</a>
9191
</div>
92-
<p>&copy; {{ currentYear }} Angular Tailwind Template</p>
92+
<p>
93+
&copy; {{ currentYear }} Angular Tailwind Template
94+
<span class="ml-2 text-xs text-gray-400 dark:text-gray-500">v{{ appVersion }}</span>
95+
</p>
9396
</div>
9497
</div>
9598
</footer>

src/app/core/footer/footer.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { CommonModule } from '@angular/common';
22
import { Component, inject } from '@angular/core';
33
import { RouterLink } from '@angular/router';
44
import { TranslateModule, TranslateService } from '@ngx-translate/core';
5+
import packageJson from '../../../../package.json';
56

67
@Component({
78
selector: 'app-footer',
@@ -14,6 +15,7 @@ export class FooterComponent {
1415
private translate = inject(TranslateService);
1516
isVisible = true;
1617
currentYear = new Date().getFullYear();
18+
appVersion = packageJson.version;
1719

1820
get shouldShowFooter(): boolean {
1921
return this.translate.currentLang === 'de';

tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
"downlevelIteration": true,
1616
"experimentalDecorators": true,
1717
"moduleResolution": "bundler",
18+
"resolveJsonModule": true,
1819
"importHelpers": true,
1920
"target": "ES2022",
2021
"module": "ES2022",
2122
"useDefineForClassFields": false,
22-
"lib": [
23-
"ES2022",
24-
"dom"
25-
]
23+
"lib": ["ES2022", "dom"]
2624
},
2725
"angularCompilerOptions": {
2826
"enableI18nLegacyMessageIdFormat": false,

0 commit comments

Comments
 (0)