From dfdc8afc9dacba3ae0cf8dcbd375cf2d03ee7481 Mon Sep 17 00:00:00 2001 From: Mariano Fuentes Date: Tue, 16 Sep 2025 14:54:07 -0400 Subject: [PATCH] Refactor release configuration and GitHub workflow for package publishing - Removed individual npm publishing configurations for several packages in release.config.js, streamlining the release process. - Updated the GitHub Actions workflow to eliminate the package build step before release, simplifying the CI/CD pipeline. These changes enhance the efficiency of the release process and reduce unnecessary build steps in the workflow. --- .github/workflows/release.yml | 10 ------- release.config.js | 49 ----------------------------------- 2 files changed, 59 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71f1468f6c..e4a6a3e80d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,19 +51,9 @@ jobs: - name: Install dependencies run: bun install --frozen-lockfile # Use --frozen-lockfile in CI - - name: Build packages - run: | - echo "🔨 Building packages before release..." - bun run -F @trycompai/db build - bun run -F @trycompai/email build - bun run -F @trycompai/kv build - bun run -F @trycompai/ui build - bun run -F @trycompai/analytics build - - name: Release env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Enable npm publishing DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} HUSKY: 0 # Skip husky hooks in CI run: npx semantic-release diff --git a/release.config.js b/release.config.js index 44d1c1cff5..93072c52cd 100644 --- a/release.config.js +++ b/release.config.js @@ -14,55 +14,6 @@ module.exports = { }, ], '@semantic-release/changelog', - [ - '@semantic-release/npm', - { - npmPublish: false, // Root package stays private - }, - ], - // Publish each package individually - [ - '@semantic-release/npm', - { - npmPublish: true, - pkgRoot: 'packages/db', - }, - ], - [ - '@semantic-release/npm', - { - npmPublish: true, - pkgRoot: 'packages/email', - }, - ], - [ - '@semantic-release/npm', - { - npmPublish: true, - pkgRoot: 'packages/kv', - }, - ], - [ - '@semantic-release/npm', - { - npmPublish: true, - pkgRoot: 'packages/ui', - }, - ], - [ - '@semantic-release/npm', - { - npmPublish: true, - pkgRoot: 'packages/analytics', - }, - ], - [ - '@semantic-release/npm', - { - npmPublish: true, - pkgRoot: 'packages/tsconfig', - }, - ], [ '@semantic-release/git', {