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
refactor: remove beta sync script and update promotion documentation
- Deleted the `sync-develop-to-beta.sh` script as it is no longer needed.
- Updated the promotion documentation in `PUBLISH.md` to clarify the workflow and removed references to the beta publish line.
- Adjusted the NPM audit allowlist documentation to reflect the removal of the beta sync script.
Copy file name to clipboardExpand all lines: docs/PUBLISH.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Two workflows cover release artifacts:
12
12
13
13
**GitHub Releases:** Staging prereleases and main production releases get a short auto-generated description. Maintain richer notes on GitHub when needed.
14
14
15
-
**Promotion:**all product changes land on **`develop`**. **Order:****`sync-develop-to-staging.sh`**, then (after a green **Publish (staging)**) **`sync-staging-to-main.sh`**. Do **not** update **`main` directly from `develop`**; **`main`** only advances from **`staging`**. There is no **`beta`** publish line.
15
+
**Promotion scripts**(under `scripts/publish/`): `sync-develop-to-staging.sh`, then (after a green staging build, when you want RTM) `sync-staging-to-main.sh`. Use **`staging`** for preprod builds and **`main`** to ship. Do **not** update **`main` directly from `develop`**; **`main`** only advances from **`staging`**.
if [[ "$(uname -s)"=="Darwin"&&"$(uname -m)"=="arm64"&&"$DOCKER_PLATFORM"=="linux/amd64" ]];then
83
+
echo -e "${YELLOW}Note: emulated linux/amd64 on Apple Silicon can be slow or fail during optional native installs.${NC}"
84
+
echo -e "${YELLOW} If needed: LOCKFILE_DOCKER_PLATFORM=linux/arm64 (see docs/development/tooling/LOCKFILE-LINUX.md).${NC}"
85
+
echo""
86
+
fi
87
+
88
+
if! docker run --rm \
89
+
--platform "$DOCKER_PLATFORM" \
90
+
-v "$REPO_ROOT:/app" \
91
+
-w /app \
92
+
"$NODE_IMAGE" \
93
+
bash -c 'npm ci && bash scripts/lib/check-audit-gate.sh "" "promote to staging"';then
94
+
echo -e "${RED}Error: npm ci or npm audit gate failed in Docker. Fix issues before syncing to staging.${NC}"
95
+
exit 1
96
+
fi
97
+
98
+
echo -e "${YELLOW}Note: node_modules now matches Linux optional deps from Docker. For local macOS dev, reinstall deps (e.g. rm -rf node_modules && npm install).${NC}"
71
99
echo""
72
100
73
-
echo -e "${YELLOW}Updating local staging...${NC}"
101
+
echo -e "${YELLOW}Updating local staging to match origin/staging...${NC}"
0 commit comments