From debb022d0aa1279ab2e6e1e14191cc2dc0ad94fb Mon Sep 17 00:00:00 2001 From: Digen More Date: Sun, 22 Dec 2024 12:59:43 +0530 Subject: [PATCH 1/4] Update main entry point in package.json to dist/index.js --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0d3558f..2e9eaa9 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@dmxdev/mongoose-paginated-query", "version": "1.2.2", "description": "Mongodb Paginate Queries Package", - "main": "index.ts", + "main": "dist/index.js", "types": "dist/index.d.ts", "publishConfig": { "access": "public" From 90546d19704771f1c2b7452ecf5fce784a8fb346 Mon Sep 17 00:00:00 2001 From: Digen More Date: Sun, 22 Dec 2024 12:59:52 +0530 Subject: [PATCH 2/4] 1.2.3 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d7a38a2..171b0c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dmxdev/mongoose-paginated-query", - "version": "1.2.2", + "version": "1.2.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dmxdev/mongoose-paginated-query", - "version": "1.2.2", + "version": "1.2.3", "license": "MIT", "dependencies": { "mongoose": "^8.9.2" diff --git a/package.json b/package.json index 2e9eaa9..b927704 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dmxdev/mongoose-paginated-query", - "version": "1.2.2", + "version": "1.2.3", "description": "Mongodb Paginate Queries Package", "main": "dist/index.js", "types": "dist/index.d.ts", From db863fe0e258108178b7c7f5802862c67a678c83 Mon Sep 17 00:00:00 2001 From: Digen More Date: Sun, 22 Dec 2024 13:19:52 +0530 Subject: [PATCH 3/4] Add GitHub Actions workflow for automated publishing --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b39934e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: '🚀 Publish' + +on: + push: + branches: + - main + +jobs: + release: + name: '🚀 Publish' + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x, 23.x] + steps: + - name: checkout + uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + registry-url: https://registry.npmjs.org/ + - name: 🚀 Publish + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} From 0d97200b5886063659e4a2484df82f2c0819cfcf Mon Sep 17 00:00:00 2001 From: Digen More Date: Sun, 22 Dec 2024 13:19:55 +0530 Subject: [PATCH 4/4] 1.3.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 171b0c0..f2a1344 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dmxdev/mongoose-paginated-query", - "version": "1.2.3", + "version": "1.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dmxdev/mongoose-paginated-query", - "version": "1.2.3", + "version": "1.3.0", "license": "MIT", "dependencies": { "mongoose": "^8.9.2" diff --git a/package.json b/package.json index b927704..851ab29 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dmxdev/mongoose-paginated-query", - "version": "1.2.3", + "version": "1.3.0", "description": "Mongodb Paginate Queries Package", "main": "dist/index.js", "types": "dist/index.d.ts",