Skip to content

ci: reinstate Release workflow with OIDC trusted publishing - #29

Merged
ABujalance merged 1 commit into
mainfrom
ci/reinstate-release-oidc
Jul 26, 2026
Merged

ci: reinstate Release workflow with OIDC trusted publishing#29
ABujalance merged 1 commit into
mainfrom
ci/reinstate-release-oidc

Conversation

@ABujalance

Copy link
Copy Markdown
Contributor

Restores the automated publish pipeline that was removed in 7551d28 ("we publish manually"), this time tokenless.

What it does

On merge to main, .github/workflows/release.yml consumes any pending changesets, bumps the version + changelog, and publishes @thatopen/services to npm via OIDC trusted publishing — no NPM_TOKEN secret. Anyone can cut a release by adding a changeset in a PR; no one holds a token.

Why the old one broke

It ran yarn install --frozen-lockfile against a lockfile that had drifted because the repo mixed npm and yarn. This standardizes CONTRIBUTING on yarn (the committed lockfile + CI already use it) to stop the drift.

Changes

  • .github/workflows/release.yml — restored, id-token: write, upgrades npm to an OIDC-capable version, no token secret
  • CONTRIBUTING.md — setup/build standardized on yarn; publishing section documents the changeset → merge → CI-publishes flow, with a break-glass manual path

Requires before it can publish

A trusted publisher configured on npm for @thatopen/services: GitHub Actions, org ThatOpen, repo platform_services, workflow release.yml.

On merge

A get-avatar.md changeset is already on main, so the first run will publish a minor bump (0.3.16 → 0.4.0) shipping PlatformClient.getAvatar.

Restores automated publishing removed in 7551d28. On merge to main it consumes pending changesets, bumps the version, and publishes to npm over OIDC trusted publishing (no token secret). Standardizes CONTRIBUTING on yarn to stop the lockfile drift that broke the previous workflow, and documents the changeset flow plus a break-glass manual path.
@ABujalance
ABujalance merged commit c6d5ec4 into main Jul 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant