Skip to content

Commit 5206140

Browse files
committed
docs: add the release rule for provider packages
release-please counts a commit for the SDK unless every file it touches is under packages/, and pull requests are squash-merged. Write down the rule that keeps a provider change out of the SDK release: - a provider feat or fix touches only packages/<name>/; - a provider dependency change goes in its own chore(deps) pull request, with the package.json and the root package-lock.json together, merged before the feat or fix that needs it. Spec: docs/ideation/wif-backend-sdks/spec-phase-3.md
1 parent ef4afb1 commit 5206140

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,26 @@ Write American English in hand-maintained code, comments, docs and test names
88
Never respell a name or value that already ships: exported types, methods,
99
options, API fields and enum values, fixture payloads, generated files, and
1010
third-party identifiers keep their spelling.
11+
12+
## Releases
13+
14+
release-please releases four packages from this repository: the SDK at the
15+
root, and a provider package in each directory under `packages/`. A change to
16+
a provider package must not release the SDK.
17+
18+
release-please counts a commit for the SDK unless every file it touches is
19+
under `packages/`. Pull requests are squash-merged, so one pull request is one
20+
commit. Only `feat`, `fix`, `perf` and `revert` commits, and breaking changes,
21+
cause a release.
22+
23+
- A `feat` or `fix` pull request for a provider package touches only
24+
`packages/<name>/`.
25+
- A change to a provider package's dependencies goes in its own `chore(deps)`
26+
pull request, with `packages/<name>/package.json` and the root
27+
`package-lock.json` together. Merge it before the `feat` or `fix` pull
28+
request that needs it.
29+
- A `chore(deps)` pull request releases nothing. When a dependency change must
30+
ship with no other change, follow it with a `fix` pull request that touches
31+
only `packages/<name>/`.
32+
- A pull request that changes the SDK and a provider package on purpose
33+
releases both.

0 commit comments

Comments
 (0)