Commit Graph
8 Commits
Author SHA1 Message Date
chrnx 29aafde84c fix(ci): make Verdaccio staging idempotent
CI / build (pull_request) Successful in 32s
Stage only release branches and preserve immutable versions. Repeated identical candidates now exit successfully, while content changes under an existing version require a prerelease bump.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 22:38:56 -05:00
chrnx 934fbd4c19 ci: gate releases on clean dependency audits
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:03:54 -05:00
chrnx 1a313c21ad ci: publish prereleases under their channel dist-tag, not latest
CI / build (pull_request) Successful in 24s
A beta/alpha/rc version must not become 'latest' on npmjs (else npm install serves a prerelease). Derive the dist-tag from the version: 26.7.0-beta.0 -> beta, stable -> latest.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 14:59:48 -05:00
chrnx 3ff90b418d ci: publish to npmjs via OIDC Trusted Publishing (no token)
CI / build (pull_request) Successful in 23s
Replaces the NPM_AUTH secret on the prod path with npm Trusted Publishing: id-token: write + npm>=11.5.1, npm exchanges the OIDC token for a short-lived publish token and attaches provenance. Requires a trusted publisher configured on npmjs (Expressive-Tea/green-tea, release.yml).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 14:53:28 -05:00
chrnx 3fe0016dbd fix(ci): unpublish before publish to Verdaccio (registry rejects overwrite)
CI / build (pull_request) Successful in 24s
The staging registry (npm.svc.zoit.services) does not allow overwriting an existing version, so re-publishing the same prerelease on each main merge failed. Unpublish the version first (tolerant --force, no-op when absent) then publish fresh.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 14:08:39 -05:00
chrnx 96d863d402 ci: use the NPM_AUTH secret for both Verdaccio and npmjs publishes
CI / build (pull_request) Successful in 24s
One secret name across forges: Gitea's NPM_AUTH (org-level) = the Verdaccio token for staging; GitHub's NPM_AUTH = the npmjs token for production. Each forge supplies its own value.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 21:17:17 -05:00
chrnx 33df70730b ci: add stage/promote/release workflows for the two-forge pipeline
CI / build (pull_request) Successful in 23s
stage.yml (Gitea-only): publish package to Verdaccio under 'stg' tag on main merge. promote.yml (Gitea-only): mirror only main + version tags to GitHub. release.yml (GitHub-only): publish stable to npmjs on a v* tag. Forge is detected via github.server_url; secrets: VERDACCIO_TOKEN (Gitea), GH_PROMOTE_TOKEN (Gitea, set), NPM_TOKEN (GitHub, pending).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 20:43:43 -05:00
chrnx 2a84331022 ci: relocate CI workflow to .github/workflows for two-forge compatibility
CI / build (pull_request) Successful in 24s
GitHub Actions only reads .github/workflows; Gitea reads both. Relocating (content unchanged) makes the one gate portable across both forges — the foundation for the Gitea(stg)+GitHub(prod) pipeline.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 20:36:36 -05:00