Skip to content

Commit 21fbb3a

Browse files
Refactor release configuration and GitHub workflow for package publishing (#1517)
- 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. Co-authored-by: Mariano Fuentes <marfuen98@gmail.com>
1 parent 4b3d302 commit 21fbb3a

2 files changed

Lines changed: 0 additions & 59 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,9 @@ jobs:
5151
- name: Install dependencies
5252
run: bun install --frozen-lockfile # Use --frozen-lockfile in CI
5353

54-
- name: Build packages
55-
run: |
56-
echo "🔨 Building packages before release..."
57-
bun run -F @trycompai/db build
58-
bun run -F @trycompai/email build
59-
bun run -F @trycompai/kv build
60-
bun run -F @trycompai/ui build
61-
bun run -F @trycompai/analytics build
62-
6354
- name: Release
6455
env:
6556
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
66-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Enable npm publishing
6757
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
6858
HUSKY: 0 # Skip husky hooks in CI
6959
run: npx semantic-release

release.config.js

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -14,55 +14,6 @@ module.exports = {
1414
},
1515
],
1616
'@semantic-release/changelog',
17-
[
18-
'@semantic-release/npm',
19-
{
20-
npmPublish: false, // Root package stays private
21-
},
22-
],
23-
// Publish each package individually
24-
[
25-
'@semantic-release/npm',
26-
{
27-
npmPublish: true,
28-
pkgRoot: 'packages/db',
29-
},
30-
],
31-
[
32-
'@semantic-release/npm',
33-
{
34-
npmPublish: true,
35-
pkgRoot: 'packages/email',
36-
},
37-
],
38-
[
39-
'@semantic-release/npm',
40-
{
41-
npmPublish: true,
42-
pkgRoot: 'packages/kv',
43-
},
44-
],
45-
[
46-
'@semantic-release/npm',
47-
{
48-
npmPublish: true,
49-
pkgRoot: 'packages/ui',
50-
},
51-
],
52-
[
53-
'@semantic-release/npm',
54-
{
55-
npmPublish: true,
56-
pkgRoot: 'packages/analytics',
57-
},
58-
],
59-
[
60-
'@semantic-release/npm',
61-
{
62-
npmPublish: true,
63-
pkgRoot: 'packages/tsconfig',
64-
},
65-
],
6617
[
6718
'@semantic-release/git',
6819
{

0 commit comments

Comments
 (0)