5 Commits
Author SHA1 Message Date
CatoandClaude dab800e1b4 fix(release): a package new in a push no longer stops the GitLab publish (#16)
ci-publish.sh read each package.json's old version with `git show
BEFORE:file | node`. For a package that did not exist before the push,
git exits 128, and under pipefail the assignment ended the whole run before
it printed anything: the main push that added datakit (#15) failed in 0.6 s.
Now the missing file reads as no old version, so a new package is a target.

Checked: CI_PUBLISH_DRY=1 with BEFORE=592949d on 14574b7 exited 128 before,
and says 'would publish datakit 0.1.0' after (already on npm, so the real
run skips it).


Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 18:51:34 +01:00
592949d62a ci(gitlab): a merged version bump publishes itself (#14)
Gitea pushes main on to gitlab.com/bitbaum/kits after every merge (a push mirror); GitLab CI now runs on that push too and publishes every package whose version it changed (scripts/ci-publish.sh). Tags still publish one package, as release.sh does. A version already on npm is skipped; resource_group keeps a tag and a main push from racing.

Checked by dry run (CI_PUBLISH_DRY=1) on this repo's history: a0197d1..c31f0ca → chatkit 0.46.0, paykit 0.4.0; tag paykit-v0.4.0 → paykit 0.4.0; a new branch → nothing.


Claude-Session: https://claude.ai/code/session_019MDtmsvGp1KVF8b3TMcU8J

Co-authored-by: Cato <cato@orangecat.ch>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 15:47:30 +01:00
CatoandClaude Opus 5.5 a0197d1974 release: 14 packages through GitLab, so every package keeps its npm trust
accountkit 0.33.0, ai-kit 1.32.0 and design-tokens 1.8.0 carry the changes
that waited in their changelogs since publishing stopped on 2026-11-15; the
other 11 are patch releases with no code change. Publishing each once from
GitLab validates its new trust (npm drops one unused for 2 days).

scripts/trust-gitlab.sh replaces an older (GitHub) trust instead of failing:
npm keeps one per package, and bip-kit and chartkit failed with ENEEDAUTH.
README: releasing never needs npm; only a brand-new package needs one trust.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
2026-11-21 18:04:17 +01:00
CatoandClaude Opus 5.5 9970922b74 ci(kits): publish to npm from GitLab.com on a release tag (#6)
* ci(kits): publish to npm from GitLab.com on a release tag

npm's trusted publishing (no stored npm token) accepts only GitHub Actions,
GitLab.com shared runners and CircleCI cloud. GitHub Actions has been off for
the bitbaum org since 2026-11-15 and Gitea's runners are self-hosted, so every
release needed an npm sign-in and a security key on the laptop.

- .gitlab-ci.yml: on `<folder>-v<version>`, check the version matches, pack
  with pnpm (workspace ranges written in), publish the tarball with npm.
- scripts/release.sh: bump, verify, commit, tag, push to origin and gitlab;
  no npm login.
- scripts/trust-gitlab.sh: once per package, trust the GitLab job.

Provenance stays off until package.json `repository` names the project that
builds it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci(kits): trust a package at its first GitLab release (npm drops unused trusts after 2 days)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:28:40 +01:00
CatoandClaude Opus 5.5 cab5d1f9ba feat(kits): one check per change and a one-command release
- .gitea/workflows/check.yml: on PR/push, verify the touched packages and
  their dependents, on the laptop runner.
- scripts/release.sh: bump, verify package + dependents, tag, npm publish,
  push; --pending lists versions npm does not have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 19:43:40 +01:00