Compare commits
3 Commits
fix/publis
...
fix/popula
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f39e0e44c | ||
|
|
75ffbd2f38 | ||
|
|
c7691d9807 |
@@ -45,27 +45,21 @@ steps:
|
|||||||
# Gitea org rename and caused every @mosaicstack/* publish to fall
|
# Gitea org rename and caused every @mosaicstack/* publish to fall
|
||||||
# on the floor while CI still reported green.
|
# on the floor while CI still reported green.
|
||||||
- |
|
- |
|
||||||
# Portable sh (Alpine ash) — avoid bashisms like PIPESTATUS.
|
|
||||||
set +e
|
set +e
|
||||||
pnpm --filter "@mosaicstack/*" --filter "!@mosaicstack/web" publish --no-git-checks --access public >/tmp/publish.log 2>&1
|
pnpm --filter "@mosaicstack/*" --filter "!@mosaicstack/web" publish --no-git-checks --access public 2>&1 | tee /tmp/publish.log
|
||||||
EXIT=$?
|
EXIT=${PIPESTATUS[0]}
|
||||||
set -e
|
set -e
|
||||||
cat /tmp/publish.log
|
|
||||||
if [ "$EXIT" -eq 0 ]; then
|
if [ "$EXIT" -eq 0 ]; then
|
||||||
echo "[publish] all packages published successfully"
|
echo "[publish] all packages published successfully"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
# Hard registry / auth / network errors → fatal. Match npm's own
|
# Any hard registry/auth/network error fails the pipeline.
|
||||||
# error lines specifically to avoid false positives on arbitrary
|
if grep -qE "E404|E401|ENEEDAUTH|ECONNREFUSED|ETIMEDOUT|ENOTFOUND" /tmp/publish.log; then
|
||||||
# log text that happens to contain "E404" etc.
|
|
||||||
if grep -qE "npm (error|ERR!) code (E404|E401|ENEEDAUTH|ECONNREFUSED|ETIMEDOUT|ENOTFOUND)" /tmp/publish.log; then
|
|
||||||
echo "[publish] FATAL: registry/auth/network error detected — failing pipeline" >&2
|
echo "[publish] FATAL: registry/auth/network error detected — failing pipeline" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Only tolerate the explicit "version already published" case.
|
# Tolerate only the specific "version already published" case.
|
||||||
# npm returns this as E403 with body "You cannot publish over..."
|
if grep -qE "EPUBLISHCONFLICT|cannot publish over|previously published" /tmp/publish.log; then
|
||||||
# or EPUBLISHCONFLICT depending on version.
|
|
||||||
if grep -qE "EPUBLISHCONFLICT|You cannot publish over|previously published" /tmp/publish.log; then
|
|
||||||
echo "[publish] some packages already at this version — continuing (non-fatal)"
|
echo "[publish] some packages already at this version — continuing (non-fatal)"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mosaicstack/mosaic",
|
"name": "@mosaicstack/mosaic",
|
||||||
"version": "0.0.20",
|
"version": "0.0.21",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.mosaicstack.dev/mosaicstack/mosaic-stack.git",
|
"url": "https://git.mosaicstack.dev/mosaicstack/mosaic-stack.git",
|
||||||
|
|||||||
@@ -127,10 +127,28 @@ export function semverLt(a: string, b: string): boolean {
|
|||||||
// ─── Known packages for checkForAllUpdates() ──────────────────────────────
|
// ─── Known packages for checkForAllUpdates() ──────────────────────────────
|
||||||
|
|
||||||
const KNOWN_PACKAGES = [
|
const KNOWN_PACKAGES = [
|
||||||
'@mosaicstack/mosaic',
|
'@mosaicstack/agent',
|
||||||
'@mosaicstack/cli',
|
'@mosaicstack/auth',
|
||||||
|
'@mosaicstack/brain',
|
||||||
|
'@mosaicstack/config',
|
||||||
|
'@mosaicstack/coord',
|
||||||
|
'@mosaicstack/db',
|
||||||
|
'@mosaicstack/design-tokens',
|
||||||
|
'@mosaicstack/discord-plugin',
|
||||||
|
'@mosaicstack/forge',
|
||||||
'@mosaicstack/gateway',
|
'@mosaicstack/gateway',
|
||||||
|
'@mosaicstack/log',
|
||||||
|
'@mosaicstack/macp',
|
||||||
|
'@mosaicstack/memory',
|
||||||
|
'@mosaicstack/mosaic',
|
||||||
|
'@mosaicstack/oc-framework-plugin',
|
||||||
|
'@mosaicstack/oc-macp-plugin',
|
||||||
|
'@mosaicstack/prdy',
|
||||||
'@mosaicstack/quality-rails',
|
'@mosaicstack/quality-rails',
|
||||||
|
'@mosaicstack/queue',
|
||||||
|
'@mosaicstack/storage',
|
||||||
|
'@mosaicstack/telegram-plugin',
|
||||||
|
'@mosaicstack/types',
|
||||||
];
|
];
|
||||||
|
|
||||||
// ─── Multi-package types ──────────────────────────────────────────────────
|
// ─── Multi-package types ──────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user