Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
35c6f18
feat: add reflect-metadata dependency and update entity metadata in c…
Vinitthakkar45 Jun 15, 2026
0418cfd
feat: add entity metadata to DTOs and update test configurations
Vinitthakkar45 Jun 15, 2026
fb1c2cf
remove transformer
Vinitthakkar45 Jun 15, 2026
2af56ec
feat: update entity metadata in DTOs and core beans
Vinitthakkar45 Jun 15, 2026
aa86193
feat: add @entity in openapi spec and generated docs using docusaurus
Vinitthakkar45 Jun 16, 2026
9028f41
feat: add @entity metadata to DTOs in frontend
Vinitthakkar45 Jun 16, 2026
a85de6e
feat: add GitHub Actions workflow for publishing libraries to npm and…
Vinitthakkar45 Jun 16, 2026
02ca880
feat: remove entity from request bodies in multiple services and upda…
Vinitthakkar45 Jun 16, 2026
9377452
feat: use instanceToPlain for updatedCampaign and updatedCoupon in ed…
Vinitthakkar45 Jun 16, 2026
85423f0
Refactor client methods and error handling across multiple files
Vinitthakkar45 Jun 18, 2026
f77e0ae
feat: update addCouponItems and updateItemsInCoupon methods to accept…
Vinitthakkar45 Jun 19, 2026
7ff1881
feat: add docker-compose.override.yml for local development setup
Vinitthakkar45 Jun 19, 2026
5c16135
Refactor method signatures in client methods to remove Partial types …
Vinitthakkar45 Jun 22, 2026
a4fd916
feat: add tests for getItemsForCoupon method and update package depen…
Vinitthakkar45 Jun 22, 2026
3ba65c3
feat: add coupon item management methods and corresponding tests
Vinitthakkar45 Jun 23, 2026
1d48b8f
feat: update addCustomersToCouponCode and updateUser methods to use c…
Vinitthakkar45 Jun 23, 2026
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
91 changes: 91 additions & 0 deletions .github/workflows/publish-libs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Publish libs to npm

on:
push:
branches:
- main
paths:
- 'lib/core/**'
- 'lib/client/**'
workflow_dispatch:

jobs:
publish-core:
name: Build & Publish qpon-core
runs-on: ubuntu-latest
defaults:
run:
working-directory: lib/core
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Check if version is already published
id: version_check
run: |
VERSION=$(node -p "require('./package.json').version")
PKG_NAME=$(node -p "require('./package.json').name")
if npm view "$PKG_NAME@$VERSION" version 2>/dev/null; then
echo "already_published=true" >> $GITHUB_OUTPUT
else
echo "already_published=false" >> $GITHUB_OUTPUT
fi

- name: Publish to npm
if: steps.version_check.outputs.already_published == 'false'
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-client:
name: Build & Publish qpon-client
runs-on: ubuntu-latest
# client depends on @org-quicko/qpon-core, so it must run AFTER core is published
needs: publish-core
defaults:
run:
working-directory: lib/client
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Check if version is already published
id: version_check
run: |
VERSION=$(node -p "require('./package.json').version")
PKG_NAME=$(node -p "require('./package.json').name")
if npm view "$PKG_NAME@$VERSION" version 2>/dev/null; then
echo "already_published=true" >> $GITHUB_OUTPUT
else
echo "already_published=false" >> $GITHUB_OUTPUT
fi

- name: Publish to npm
if: steps.version_check.outputs.already_published == 'false'
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
generated
.env
.env
docker-compose.override.yml
43 changes: 11 additions & 32 deletions api/package-lock.json

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

Loading