From 117abdb566a2900b9b4770a620e77da76914ff62 Mon Sep 17 00:00:00 2001 From: andresfv95 Date: Wed, 12 Feb 2025 17:36:53 -0500 Subject: [PATCH] fix: Updated Yarn to v3.6.4 and updated CI/CD configuration file (#90) --- .github/workflows/cd.yml | 14 +++++--------- .github/workflows/ci.yml | 2 ++ package.json | 1 - 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c02ed57..5526af0 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -108,16 +108,12 @@ jobs: env: NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - # Persist token - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc - + echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc + yarn config set npmAuthToken ${NPM_AUTH_TOKEN} 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/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d66b43..82b8e5b 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 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": {