diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index bb78fa7..24c4254 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -7,7 +7,7 @@ when: steps: npm: - image: code.philo.ydns.eu/philorg/pnpm + image: code.philo.ydns.eu/philorg/pnpm-deb environment: ORG: philorg REGISTRY_TOKEN: @@ -20,6 +20,11 @@ steps: - pnpm publish --no-git-checks failure: ignore + build: + image: code.philo.ydns.eu/philorg/pnpm-deb + commands: + - pnpm build + build_publish: image: quay.io/podman/stable:latest # Caution: This image is built daily. It might fill up your image store quickly. @@ -32,7 +37,7 @@ steps: environment: registry: code.philo.ydns.eu org: philorg - container_name: oidc-vue-test + container_name: treetrail-frontend registry_token: from_secret: registry_token commands: diff --git a/package-lock.json b/package-lock.json index 0569d68..91aa9a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "treetrail", - "version": "0.4.1", + "version": "0.4.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "treetrail", - "version": "0.4.1", + "version": "0.4.5", "dependencies": { "@angular/animations": "^18.2.6", "@angular/cdk": "^18.2.6", diff --git a/package.json b/package.json index c5050b5..b408455 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,13 @@ { "name": "treetrail-frontend", - "version": "0.4.1", + "version": "0.4.5", "scripts": { "ng": "ng", "start": "ng serve --proxy-config proxy.conf.json --port 4201 --serve-path /treetrail --host 0.0.0.0", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test", - "openapi-ts": "openapi-ts", - "version": "echo \"{\\\"version\\\":\\\"$(git describe --tags --dirty --always)\\\"}\" > src/version.json" + "openapi-ts": "openapi-ts" }, "dependencies": { "@angular/animations": "^18.2.6", diff --git a/src/app/about/about.component.ts b/src/app/about/about.component.ts index 3d293a4..26596b4 100644 --- a/src/app/about/about.component.ts +++ b/src/app/about/about.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core' import { ConfigService } from '../config.service' -import versionJson from '../../version.json' +import packageJson from '../../../package.json' @Component({ selector: 'app-about', @@ -13,7 +13,7 @@ export class AboutComponent implements OnInit { public configService: ConfigService, ) { } - public version: string = versionJson.version + public version: string = packageJson.version ngOnInit(): void { } diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 52a84ae..70dc380 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,5 +1,7 @@ -import { Component, OnInit, - ChangeDetectorRef, ChangeDetectionStrategy } from '@angular/core' +import { + Component, OnInit, + ChangeDetectorRef, ChangeDetectionStrategy +} from '@angular/core' import { DataService } from './data.service' import { ActionService } from './action.service' @@ -10,7 +12,6 @@ import { combineLatest } from 'rxjs' @Component({ selector: 'app-root', templateUrl: './app.component.html', - styleUrls: ['./app.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, }) export class AppComponent implements OnInit { @@ -20,7 +21,7 @@ export class AppComponent implements OnInit { public actionService: ActionService, public appUpdateService: AppUpdateService, public cdr: ChangeDetectorRef, - ) {} + ) { } title = 'treetrail' ngOnInit(): void { diff --git a/src/app/profile/profile.component.ts b/src/app/profile/profile.component.ts index 16fa22f..c5b8ea6 100644 --- a/src/app/profile/profile.component.ts +++ b/src/app/profile/profile.component.ts @@ -3,7 +3,6 @@ import { Component } from '@angular/core'; @Component({ selector: 'app-profile', templateUrl: './profile.component.html', - styleUrls: ['./profile.component.scss'] }) export class ProfileComponent { diff --git a/src/app/settings/settings.component.ts b/src/app/settings/settings.component.ts index 44c1f14..9157906 100644 --- a/src/app/settings/settings.component.ts +++ b/src/app/settings/settings.component.ts @@ -3,7 +3,7 @@ import { Router } from '@angular/router' import { ActionService } from '../action.service' import { ConfigService, Config } from '../config.service' -import versionJson from '../../version.json' +import packageJson from '../../../package.json' @Component({ selector: 'app-settings', @@ -18,7 +18,7 @@ export class SettingsComponent implements OnInit { public router: Router, ) { } - public version: string = versionJson.version + public version: string = packageJson.version ngOnInit(): void { this.configService.conf.subscribe( diff --git a/src/version.json b/src/version.json deleted file mode 100644 index c158d5b..0000000 --- a/src/version.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "version": "0.0.0" -} \ No newline at end of file