@chordcommerce/analytics 1.21.0-beta.3 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -162,6 +162,42 @@ Useage Example
|
|
|
162
162
|
|
|
163
163
|
See [Chord’s documentation](https://docs.chord.co/api-reference) for a full API reference.
|
|
164
164
|
|
|
165
|
+
## Releasing
|
|
166
|
+
|
|
167
|
+
This package uses [semantic-release](https://github.com/semantic-release/semantic-release) to automate versioning and publishing. Releases are triggered automatically — no manual version bumps or publish steps are needed.
|
|
168
|
+
|
|
169
|
+
### How it works
|
|
170
|
+
|
|
171
|
+
1. Merge a PR into `main` (stable) or `beta` (pre-release).
|
|
172
|
+
2. The **Test** GitHub Actions workflow runs.
|
|
173
|
+
3. On success, the **Semantic Release** workflow runs automatically.
|
|
174
|
+
4. `semantic-release` analyzes commit messages since the last release and determines the version bump.
|
|
175
|
+
5. The package is published to npm and GitHub Packages, CHANGELOG.md is updated, and a Git tag is created.
|
|
176
|
+
|
|
177
|
+
### Commit message conventions
|
|
178
|
+
|
|
179
|
+
This repo enforces [Conventional Commits](https://www.conventionalcommits.org/) via commitlint. The commit message prefix determines the version bump:
|
|
180
|
+
|
|
181
|
+
| Prefix | Version Bump | Example |
|
|
182
|
+
| -------------------------- | --------------------- | --------------------------------------------------------- |
|
|
183
|
+
| `fix:` | Patch (1.0.0 → 1.0.1) | `fix: resolve race condition in consent adapter` |
|
|
184
|
+
| `feat:` | Minor (1.0.0 → 1.1.0) | `feat: add trackOrderCompleted method` |
|
|
185
|
+
| `BREAKING CHANGE:` in body | Major (1.0.0 → 2.0.0) | Commit body contains `BREAKING CHANGE: remove legacy API` |
|
|
186
|
+
|
|
187
|
+
Other prefixes (`chore:`, `ci:`, `docs:`, `refactor:`, `test:`, etc.) do **not** trigger a release.
|
|
188
|
+
|
|
189
|
+
### Monorepo scoping
|
|
190
|
+
|
|
191
|
+
This repo uses [semantic-release-monorepo](https://github.com/pmowrer/semantic-release-monorepo) to scope releases to individual packages. Only commits that touch files within a package's directory (e.g., `packages/core/`) are considered when determining the next version. Commits that only modify root-level files like `.github/workflows/`, `.nvmrc`, or other packages will not trigger a release for this package.
|
|
192
|
+
|
|
193
|
+
### Pre-releases
|
|
194
|
+
|
|
195
|
+
Merging to `beta` creates pre-release versions (e.g., `1.21.0-beta.1`). Use this for testing before promoting to `main`.
|
|
196
|
+
|
|
197
|
+
### Dry run
|
|
198
|
+
|
|
199
|
+
You can preview what a release would do without publishing by manually triggering the Semantic Release workflow in GitHub Actions with `dryRun` set to `true`.
|
|
200
|
+
|
|
165
201
|
## Support
|
|
166
202
|
|
|
167
203
|
For support with setup and configuration, please contact Chord directly at **help@chord.co**.
|
package/package.json
CHANGED