Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,28 @@ jobs:
docker push ghcr.io/${{ github.repository }}/${{ matrix.image }}:${{ steps.extract_ref.outputs.ref_name }}
docker push ghcr.io/${{ github.repository }}/${{ matrix.image }}:latest

build-package:
working-directory: backend
runs-on: ubuntu-latest
needs:
- upstream-workflows
- verify-version-strings
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
registry-url: 'https://npm.pkg.github.com'
scope: '@codecentric'
cache-dependency-path: backend/package-lock.json
- run: npm ci
- run: npm version ${{ steps.extract_ref.outputs.version }}
- run: npm run build:lib
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-helm-chart:
name: Publish Helm Chart
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
{
"name": "c4-genai-suite",
"version": "0.0.1",
"name": "@codecentric/c4-genai-suite-backend",
"version": "1.0.0",
"description": "",
"author": "",
"private": true,
"license": "Apache-2.0",
"publishConfig": {
"access": "public",
"registry": "https://npm.pkg.github.com"
},
"repository": {
"url": "https://github.com/codecentric/c4-genai-suite.git"
},
"scripts": {
"build": "nest build",
"build:lib": "tsc -p tsconfig.lib.json",
"format": "prettier --write \"src/**/*.ts\"",
"start": "nest start",
"dev": "nest start",
Expand Down
5 changes: 5 additions & 0 deletions backend/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from 'src/domain/auth/interfaces';
export * from 'src/domain/chat/interfaces';
export * from 'src/domain/extensions/interfaces';
export * from 'src/domain/files/interfaces';
export * from 'src/domain/shared';
5 changes: 5 additions & 0 deletions backend/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.json",
"include": ["src/index.ts", "src/domain/**/*.ts"],
"exclude": ["node_modules", "dist", "**/*spec.ts", "jest.*.ts"]
}