@rbbtsn0w/adg 0.8.0-dev.pr99.98856d7 → 0.8.0
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 +1 -1
- package/docs/branching-and-release.md +24 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -485,7 +485,7 @@ it's sanitized.
|
|
|
485
485
|
|
|
486
486
|
## Contributing
|
|
487
487
|
|
|
488
|
-
All feature/fix pull requests target the **`
|
|
488
|
+
All feature/fix pull requests target the **`develop`** integration branch; `main`
|
|
489
489
|
is reserved for stable releases. See [CONTRIBUTING.md](CONTRIBUTING.md) and
|
|
490
490
|
[docs/branching-and-release.md](docs/branching-and-release.md).
|
|
491
491
|
|
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
# Branching and release
|
|
2
2
|
|
|
3
|
-
ADG uses `
|
|
4
|
-
branch. Feature and fix pull requests always target `
|
|
5
|
-
request allowed to target `main` is the
|
|
3
|
+
ADG uses `develop` as the integration branch and `main` as the stable release
|
|
4
|
+
branch. Feature and fix pull requests always target `develop`; the only pull
|
|
5
|
+
request allowed to target `main` is the release promotion from `develop`.
|
|
6
6
|
|
|
7
7
|
## Contribution flow
|
|
8
8
|
|
|
9
|
-
1. Branch from the latest `
|
|
10
|
-
2. Open a pull request back to `
|
|
9
|
+
1. Branch from the latest `develop`.
|
|
10
|
+
2. Open a pull request back to `develop`.
|
|
11
11
|
3. Pass the repository checks and review.
|
|
12
|
-
4. Merge through branch protection; never push directly to `
|
|
12
|
+
4. Merge through branch protection; never push directly to `develop` or `main`.
|
|
13
13
|
|
|
14
|
-
Merges to `
|
|
15
|
-
dist-tag
|
|
16
|
-
|
|
14
|
+
Merges to `develop` are published by semantic-release under the `beta` npm
|
|
15
|
+
dist-tag (prereleases as `x.y.z-beta.N`).
|
|
16
|
+
|
|
17
|
+
## Automated Weekly Stable Release
|
|
18
|
+
|
|
19
|
+
Every Friday at 15:00 Beijing time (UTC+8 / 07:00 UTC), a scheduled automation workflow
|
|
20
|
+
(`.github/workflows/scheduled-release-pr.yml`):
|
|
21
|
+
|
|
22
|
+
1. Checks if `develop` has new commits ahead of `main`.
|
|
23
|
+
2. Automatically opens a `develop -> main` release promotion PR.
|
|
24
|
+
3. Enables native GitHub `auto-merge`.
|
|
25
|
+
4. Once all CI checks (test matrix, audits, smoke tests) pass and there are no conflicts or blockers, GitHub automatically merges the PR into `main`.
|
|
26
|
+
5. Merging to `main` triggers `semantic-release` to cut a stable release (`latest` dist-tag).
|
|
17
27
|
|
|
18
28
|
## PR Dev Preview Releases
|
|
19
29
|
|
|
20
|
-
Each pull request targeting `
|
|
30
|
+
Each pull request targeting `develop` triggers automated dev preview packaging:
|
|
21
31
|
|
|
22
32
|
- Published under the `next` dist-tag on npm and GitHub Packages.
|
|
23
33
|
- Formatted as `<BASE>-dev.pr<PR_NUM>.<SHORT_SHA>`.
|
|
@@ -25,15 +35,15 @@ Each pull request targeting `beta` triggers automated dev preview packaging:
|
|
|
25
35
|
|
|
26
36
|
## Back-merge after a stable release
|
|
27
37
|
|
|
28
|
-
The release commit created on `main` must be merged back into `
|
|
29
|
-
branches share the same release ancestry. The `Sync main to
|
|
30
|
-
a `main ->
|
|
38
|
+
The release commit created on `main` must be merged back into `develop` so both
|
|
39
|
+
branches share the same release ancestry. The `Sync main to develop` workflow opens
|
|
40
|
+
a `main -> develop` pull request after successful main CI:
|
|
31
41
|
|
|
32
42
|
- A conflict-free pull request is merged automatically with a merge commit.
|
|
33
43
|
- A conflicting pull request receives `manual-sync-needed` and must be resolved
|
|
34
44
|
by a maintainer before further promotion work.
|
|
35
45
|
- Resolve version and changelog conflicts in favor of the stable `main` release
|
|
36
|
-
commit while preserving subsequent integration changes from `
|
|
46
|
+
commit while preserving subsequent integration changes from `develop`.
|
|
37
47
|
|
|
38
48
|
The workflow never pushes directly to a protected branch. An open
|
|
39
49
|
`manual-sync-needed` pull request is an operational action item, not a successful
|