Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Update release process
haxzie committed
May 29, 2025 at 16:26 UTC
eb138a4a88d53b4b5909509fe469312b600b686b
2 files changed
+153
-35
README.md
+1
-35
@@ -311,41 +311,7 @@ composio/
311
312
## Release Process
313
314
-1. **Prepare for Release**
315
-
316
- - Ensure all changes are committed
317
- - Run tests and checks:
318
- ```bash
319
- pnpm build
320
- pnpm check:peer-deps
321
- ```
322
-
323
-2. **Create Changeset**
324
-
325
- ```bash
326
- pnpm changeset
327
- ```
328
-
329
- - Follow the prompts to describe your changes
330
- - Commit the generated changeset file
331
- - if you want to do a pre release, execute the command `pnpm changeset:pre-enter` before the above command
332
-
333
-3. **Version**
334
-
335
- ```bash
336
- pnpm changeset:version
337
- ```
338
-
339
- - Follow the prompts to version the packages
340
- - Commit the generated package bumps
341
-
342
-4. **Release**
343
-
344
-```bash
345
-pnpm changeset:release
346
-```
347
-
348
-- Follow the instructions to release the packages
314
+For detailed information about both automated and manual release processes, please refer to our [Release Process Documentation](./docs/internal/release.md).
315
316
## Environment Variables
317
docs/internal/release.md
new
+152
@@ -0,0 +1,152 @@
1
+# Release Process
2
+
3
+This document outlines the release processes for the Composio SDK. We support both automated releases through GitHub Actions and manual releases when needed.
4
+
5
+## Automated Release Process
6
+
7
+The automated release process is triggered when code is merged into the `main` branch or manually through GitHub Actions.
8
+
9
+### Requirements
10
+
11
+- `NPM_TOKEN` secret must be configured in GitHub repository settings
12
+- `CI_BOT_TOKEN` secret for GitHub authentication
13
+- All changes must be documented using Changesets
14
+- All quality checks must pass
15
+
16
+### Using Automated Release
17
+
18
+1. **For Regular Releases (via main branch)**
19
+
20
+ - Make sure your changeset is added to the PR you are merging to main. Run `pnpm changeset` on your branch before submiting the PR
21
+ - Get your PR merged to main
22
+ - The workflow will automatically:
23
+ - Create a release PR
24
+ - Publish packages when the release PR is merged
25
+
26
+2. **For Manual Triggers**
27
+ - Go to GitHub Actions
28
+ - Select "TS SDK Release" workflow
29
+ - Click "Run workflow" on main branch
30
+ - Monitor the workflow progress
31
+
32
+## Manual Release Process
33
+
34
+The manual release process is available for cases where direct control over the release process is needed.
35
+
36
+### Prerequisites
37
+
38
+- Node.js (Latest LTS)
39
+- PNPM (v10.8.0 or later)
40
+- Access to npm registry
41
+- Write access to the repository
42
+
43
+### Steps
44
+
45
+1. **Prepare for Release**
46
+
47
+ ```bash
48
+ # Ensure you're on the latest main
49
+ git checkout main
50
+ git pull origin main
51
+
52
+ # Install dependencies
53
+ pnpm install
54
+
55
+ # Run quality checks
56
+ pnpm build
57
+ pnpm check:peer-deps
58
+ ```
59
+
60
+2. **Create Changeset**
61
+
62
+ ```bash
63
+ pnpm changeset
64
+ ```
65
+
66
+ - Select affected packages
67
+ - Choose version bump type (major/minor/patch)
68
+ - Write a detailed change description
69
+ - Commit the generated changeset file
70
+
71
+ For pre-releases:
72
+
73
+ ```bash
74
+ pnpm changeset:pre-enter
75
+ pnpm changeset
76
+ ```
77
+
78
+3. **Version Packages**
79
+
80
+ ```bash
81
+ pnpm changeset:version
82
+ ```
83
+
84
+ - Review the version changes
85
+ - Commit the package bumps
86
+
87
+4. **Publish Packages**
88
+
89
+ ```bash
90
+ # Ensure you're logged in to npm
91
+ npm login
92
+
93
+ # Publish
94
+ pnpm changeset:release
95
+ ```
96
+
97
+### Troubleshooting
98
+
99
+1. **Authentication Issues**
100
+
101
+ - Ensure you're logged in to npm (`npm login`)
102
+ - Check npm token validity
103
+ - Verify registry settings in `.npmrc`
104
+
105
+2. **Build Failures**
106
+
107
+ - Clear node_modules: `pnpm clean`
108
+ - Reinstall dependencies: `pnpm install`
109
+ - Check for peer dependency issues
110
+
111
+3. **Version Conflicts**
112
+ - Check package.json versions
113
+ - Verify changeset entries
114
+ - Review git tags
115
+
116
+## Best Practices
117
+
118
+1. **Changesets**
119
+
120
+ - Write clear, descriptive changeset messages
121
+ - Include breaking changes prominently
122
+ - Reference relevant issues/PRs
123
+
124
+2. **Version Management**
125
+
126
+ - Follow semver strictly
127
+ - Document breaking changes
128
+ - Update peer dependencies appropriately
129
+
130
+3. **Quality Assurance**
131
+ - Run all tests before release
132
+ - Check bundle sizes
133
+ - Verify documentation updates
134
+
135
+## Post-Release
136
+
137
+1. **Verification**
138
+
139
+ - Check npm registry for new versions
140
+ - Verify package installations
141
+ - Test example projects
142
+
143
+2. **Documentation**
144
+
145
+ - Update changelog if needed
146
+ - Update version numbers in docs
147
+ - Announce breaking changes
148
+
149
+3. **Cleanup**
150
+ - Remove pre-release branches if any
151
+ - Update release tickets/issues
152
+ - Archive release artifacts