From d3136c30cbcf6835d5c89a242633782b9e008f37 Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 13:12:45 -0500 Subject: [PATCH 01/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/cd.yml | 2 +- package.json | 1 + packages/client/package.json | 1 + packages/model/package.json | 1 + packages/nestjs-client/package.json | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index acff068..f89fe26 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -112,7 +112,7 @@ jobs: yarn workspace @2060.io/service-agent-client add @2060.io/service-agent-model@$RELEASE_VERSION yarn workspace @2060.io/service-agent-nestjs-client add @2060.io/service-agent-model@$RELEASE_VERSION yarn workspace @2060.io/service-agent-nestjs-client add @2060.io/service-agent-client@$RELEASE_VERSION - yarn workspaces foreach --exclude @2060.io/service-agent-main -pt run publish --non-interactive + yarn publish --non-interactive diff --git a/package.json b/package.json index 4b492bb..79f96c5 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "check-format": "prettier -c \"packages/*/src/**/*.ts\"", "test": "yarn workspaces foreach run test", "lint": "eslint \"{packages,apps,libs}/**/*.ts\" --fix", + "publish": "yarn workspaces foreach --topological run publish", "validate": "yarn lint && yarn check-types && yarn check-format" }, "devDependencies": { diff --git a/packages/client/package.json b/packages/client/package.json index 0a63a05..11bb62b 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -15,6 +15,7 @@ "clean": "rimraf -rf ./build", "compile": "tsc -p tsconfig.build.json", "prepublishOnly": "yarn run build", + "publish": "npm publish", "test": "jest --passWithNoTests" }, "dependencies": { diff --git a/packages/model/package.json b/packages/model/package.json index 8011146..7cce492 100644 --- a/packages/model/package.json +++ b/packages/model/package.json @@ -15,6 +15,7 @@ "clean": "rimraf -rf ./build", "compile": "tsc -p tsconfig.build.json", "prepublishOnly": "yarn run build", + "publish": "npm publish", "test": "jest" }, "dependencies": { diff --git a/packages/nestjs-client/package.json b/packages/nestjs-client/package.json index 62ad74a..e14fb9b 100644 --- a/packages/nestjs-client/package.json +++ b/packages/nestjs-client/package.json @@ -16,6 +16,7 @@ "clean": "rimraf -rf ./build", "compile": "tsc -p tsconfig.build.json", "prepublishOnly": "yarn build", + "publish": "npm publish", "test": "jest" }, "dependencies": { From 6fcff3641c2eebec8cc9d497aace30f100681a5c Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 13:40:29 -0500 Subject: [PATCH 02/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/cd.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f89fe26..4e95970 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -108,6 +108,8 @@ jobs: env: NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | + # Persist token + echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc yarn workspaces foreach --topological --exclude "@2060.io/service-agent-main" version $RELEASE_VERSION yarn workspace @2060.io/service-agent-client add @2060.io/service-agent-model@$RELEASE_VERSION yarn workspace @2060.io/service-agent-nestjs-client add @2060.io/service-agent-model@$RELEASE_VERSION From cf02af72f50ca5975aa52a7135a1d77c07e9cebc Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 13:46:13 -0500 Subject: [PATCH 03/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/cd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4e95970..b0d30dc 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -110,6 +110,7 @@ jobs: run: | # Persist token echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc + yarn workspaces foreach --topological --exclude "@2060.io/service-agent-main" version $RELEASE_VERSION yarn workspace @2060.io/service-agent-client add @2060.io/service-agent-model@$RELEASE_VERSION yarn workspace @2060.io/service-agent-nestjs-client add @2060.io/service-agent-model@$RELEASE_VERSION From 2f9164b69b9dadfea701b6a282d11b846a272926 Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 14:25:47 -0500 Subject: [PATCH 04/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- packages/client/package.json | 1 - packages/model/package.json | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index 11bb62b..0a63a05 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -15,7 +15,6 @@ "clean": "rimraf -rf ./build", "compile": "tsc -p tsconfig.build.json", "prepublishOnly": "yarn run build", - "publish": "npm publish", "test": "jest --passWithNoTests" }, "dependencies": { diff --git a/packages/model/package.json b/packages/model/package.json index 7cce492..8011146 100644 --- a/packages/model/package.json +++ b/packages/model/package.json @@ -15,7 +15,6 @@ "clean": "rimraf -rf ./build", "compile": "tsc -p tsconfig.build.json", "prepublishOnly": "yarn run build", - "publish": "npm publish", "test": "jest" }, "dependencies": { From 03cb80989158d332b946482f85a3d38eadba2300 Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 15:32:46 -0500 Subject: [PATCH 05/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/cd.yml | 10 ++++------ package.json | 2 +- packages/nestjs-client/package.json | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b0d30dc..5000f1f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -106,15 +106,13 @@ jobs: - name: Publish NPM packages if: steps.semantic.outputs.new-release-published == 'true' env: - NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | # Persist token echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc - - yarn workspaces foreach --topological --exclude "@2060.io/service-agent-main" version $RELEASE_VERSION - yarn workspace @2060.io/service-agent-client add @2060.io/service-agent-model@$RELEASE_VERSION - yarn workspace @2060.io/service-agent-nestjs-client add @2060.io/service-agent-model@$RELEASE_VERSION - yarn workspace @2060.io/service-agent-nestjs-client add @2060.io/service-agent-client@$RELEASE_VERSION + + yarn workspaces foreach --topological version $RELEASE_VERSION + yarn install yarn publish --non-interactive diff --git a/package.json b/package.json index 79f96c5..7ccd8b2 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "check-format": "prettier -c \"packages/*/src/**/*.ts\"", "test": "yarn workspaces foreach run test", "lint": "eslint \"{packages,apps,libs}/**/*.ts\" --fix", - "publish": "yarn workspaces foreach --topological run publish", + "publish": "yarn workspaces foreach --no-private --exclude @2060.io/service-agent-main --topological npm publish", "validate": "yarn lint && yarn check-types && yarn check-format" }, "devDependencies": { diff --git a/packages/nestjs-client/package.json b/packages/nestjs-client/package.json index e14fb9b..62ad74a 100644 --- a/packages/nestjs-client/package.json +++ b/packages/nestjs-client/package.json @@ -16,7 +16,6 @@ "clean": "rimraf -rf ./build", "compile": "tsc -p tsconfig.build.json", "prepublishOnly": "yarn build", - "publish": "npm publish", "test": "jest" }, "dependencies": { From 81d083955ad47dcb7cf243d0f2423b3c6b244cb4 Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 15:42:08 -0500 Subject: [PATCH 06/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5000f1f..41f2f26 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -113,7 +113,7 @@ jobs: yarn workspaces foreach --topological version $RELEASE_VERSION yarn install - yarn publish --non-interactive + yarn publish From f4785033e6972529d77b183835f060ff0e8e89bc Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 15:56:35 -0500 Subject: [PATCH 07/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/cd.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 41f2f26..c02ed57 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -112,6 +112,10 @@ jobs: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc yarn workspaces foreach --topological version $RELEASE_VERSION + yarn workspace @2060.io/service-agent-main add @2060.io/service-agent-model@$RELEASE_VERSION + yarn workspace @2060.io/service-agent-client add @2060.io/service-agent-model@$RELEASE_VERSION + yarn workspace @2060.io/service-agent-nestjs-client add @2060.io/service-agent-model@$RELEASE_VERSION + yarn workspace @2060.io/service-agent-nestjs-client add @2060.io/service-agent-client@$RELEASE_VERSION yarn install yarn publish From c42385af5f657c545e4beee1a28dd46c7265ab20 Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 17:11:46 -0500 Subject: [PATCH 08/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/cd.yml | 12 +++--------- package.json | 1 - 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c02ed57..037859a 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -108,16 +108,10 @@ jobs: env: NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - # Persist token - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc - yarn workspaces foreach --topological version $RELEASE_VERSION - yarn workspace @2060.io/service-agent-main add @2060.io/service-agent-model@$RELEASE_VERSION - yarn workspace @2060.io/service-agent-client add @2060.io/service-agent-model@$RELEASE_VERSION - yarn workspace @2060.io/service-agent-nestjs-client add @2060.io/service-agent-model@$RELEASE_VERSION - yarn workspace @2060.io/service-agent-nestjs-client add @2060.io/service-agent-client@$RELEASE_VERSION - yarn install - yarn publish + yarn up @2060.io/service-agent-model@$RELEASE_VERSION + yarn up @2060.io/service-agent-client@$RELEASE_VERSION + yarn workspaces foreach --topological --no-private --exclude @2060.io/service-agent-main npm publish diff --git a/package.json b/package.json index 7ccd8b2..4b492bb 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "check-format": "prettier -c \"packages/*/src/**/*.ts\"", "test": "yarn workspaces foreach run test", "lint": "eslint \"{packages,apps,libs}/**/*.ts\" --fix", - "publish": "yarn workspaces foreach --no-private --exclude @2060.io/service-agent-main --topological npm publish", "validate": "yarn lint && yarn check-types && yarn check-format" }, "devDependencies": { From dbe4ac4050b90f60c2392e8b24e15e481b2b2906 Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 17:14:04 -0500 Subject: [PATCH 09/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d66b43..91b08bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,3 +36,13 @@ jobs: - name: Check Types run: | yarn check-types + + - name: Publish NPM packages + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + RELEASE_VERSION: 0.0.0-beta.${{ github.run_number }} + run: | + yarn workspaces foreach --topological version $RELEASE_VERSION + yarn up @2060.io/service-agent-model@$RELEASE_VERSION + yarn up @2060.io/service-agent-client@$RELEASE_VERSION + yarn workspaces foreach --topological --no-private --exclude @2060.io/service-agent-main npm publish From 19f9d0233601c8c0208e125b4b804582eef0cb3b Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 17:17:49 -0500 Subject: [PATCH 10/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91b08bf..c548918 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,7 @@ jobs: NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} RELEASE_VERSION: 0.0.0-beta.${{ github.run_number }} run: | + yarn set version 3.6.4 yarn workspaces foreach --topological version $RELEASE_VERSION yarn up @2060.io/service-agent-model@$RELEASE_VERSION yarn up @2060.io/service-agent-client@$RELEASE_VERSION From f32983295b26037a15afaf7524d63a650f3fe7ad Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 17:27:02 -0500 Subject: [PATCH 11/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c548918..765af9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,8 @@ jobs: steps: - name: Checkout service-agent uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup node v20 uses: actions/setup-node@v4 @@ -42,7 +44,6 @@ jobs: NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} RELEASE_VERSION: 0.0.0-beta.${{ github.run_number }} run: | - yarn set version 3.6.4 yarn workspaces foreach --topological version $RELEASE_VERSION yarn up @2060.io/service-agent-model@$RELEASE_VERSION yarn up @2060.io/service-agent-client@$RELEASE_VERSION From b6e7f0ac17202a58932062fe14efe1264a4c216d Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 17:30:39 -0500 Subject: [PATCH 12/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 765af9d..198cd82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,8 @@ jobs: NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} RELEASE_VERSION: 0.0.0-beta.${{ github.run_number }} run: | + echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc + yarn config set npmAuthToken ${NPM_AUTH_TOKEN} yarn workspaces foreach --topological version $RELEASE_VERSION yarn up @2060.io/service-agent-model@$RELEASE_VERSION yarn up @2060.io/service-agent-client@$RELEASE_VERSION From 6ff9e736f06eb03bc2ae2308d66f83f8546f6fe1 Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Wed, 12 Feb 2025 17:34:16 -0500 Subject: [PATCH 13/13] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file --- .github/workflows/cd.yml | 2 ++ .github/workflows/ci.yml | 12 ------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 037859a..5526af0 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -108,6 +108,8 @@ jobs: env: NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | + echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc + yarn config set npmAuthToken ${NPM_AUTH_TOKEN} yarn workspaces foreach --topological version $RELEASE_VERSION yarn up @2060.io/service-agent-model@$RELEASE_VERSION yarn up @2060.io/service-agent-client@$RELEASE_VERSION diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 198cd82..82b8e5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,15 +38,3 @@ jobs: - name: Check Types run: | yarn check-types - - - name: Publish NPM packages - env: - NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - RELEASE_VERSION: 0.0.0-beta.${{ github.run_number }} - run: | - echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc - yarn config set npmAuthToken ${NPM_AUTH_TOKEN} - yarn workspaces foreach --topological version $RELEASE_VERSION - yarn up @2060.io/service-agent-model@$RELEASE_VERSION - yarn up @2060.io/service-agent-client@$RELEASE_VERSION - yarn workspaces foreach --topological --no-private --exclude @2060.io/service-agent-main npm publish