diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 4ac6fc9..080e390 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -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 diff --git a/package.json b/package.json index 8537246..6b0a851 100644 --- a/package.json +++ b/package.json @@ -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",