Compare commits

...

5 commits

Author SHA1 Message Date
6aaf93b098 CI: set version dynamically
Some checks failed
/ build (push) Failing after 20s
2024-12-06 05:43:54 +01:00
ed1a9242c9 Remove private in package.json 2024-12-06 05:34:44 +01:00
fd6e67b332 Add my registry to package.json fix 2024-12-06 05:33:34 +01:00
6949d96117 Add my registry to package.json 2024-12-06 05:31:22 +01:00
1bf7ef7e28 Update .gitignore 2024-12-06 05:30:05 +01:00
3 changed files with 17 additions and 4 deletions

View file

@ -53,9 +53,18 @@ jobs:
- name: Update version.json from git describe
run: pnpm run version
- name: Set the version in package.json
env:
VERSION: ${{ steps.version.outputs.version }}
run: sed "s/0.0.0/${VERSION}/" -i package.json
- name: Build package (transpile ts => js)
run: ng build
- name: Publish
if: fromJSON(steps.builder.outputs.run)
run: pnpm publish
- name: Build container
if: fromJSON(steps.builder.outputs.run)
uses: actions/buildah-build@v1

2
.gitignore vendored
View file

@ -44,3 +44,5 @@ testem.log
# System Files
.DS_Store
Thumbs.db
.npmrc

View file

@ -1,6 +1,6 @@
{
"name": "treetrail",
"version": "0.0.3",
"name": "treetrail-frontend",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json --port 4201 --serve-path /treetrail",
@ -10,7 +10,6 @@
"openapi-ts": "openapi-ts",
"version": "echo \"{\\\"version\\\":\\\"$(git describe --tags --dirty --always)\\\"}\" > src/version.json"
},
"private": true,
"dependencies": {
"@angular/animations": "^18.2.6",
"@angular/cdk": "^18.2.6",
@ -62,5 +61,8 @@
"karma-jasmine-html-reporter": "^2.1.0",
"typescript": "~5.4.5"
},
"packageManager": "pnpm@9.12.2"
"packageManager": "pnpm@9.12.2",
"publishConfig": {
"registry": "http://code.philo.ydns.eu/api/packages/philorg/npm/"
}
}