You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pull Requests: Always create a PR to the main branch
84
84
85
+
## 🚀 CI/CD & Releases
86
+
87
+
We use GitHub Actions to automate testing and package publishing.
88
+
89
+
1. **Pull Requests**: Every PR targeting the `main` branch triggers the **CI** workflow which runs `npm run lint`, `npm run test:ci`, and `npm run build`. The PR cannot be merged if any check fails.
90
+
2. **Releasing a New Version**:
91
+
- Bump the version locally: `npm version patch` (or `minor` / `major`). This will update `package.json` and create a Git tag.
92
+
- Push the code and the tag: `git push origin main --tags`.
93
+
- The push of a tag matching `v*` triggers the **Publish to NPM** workflow, which automatically runs all tests, builds the ESM and CommonJS bundles, publishes the package to the public NPM registry, and creates a GitHub Release with autogenerated release notes.
0 commit comments