Skip to content

ci: npm OIDC release workflow (ported from terra-react); fix malformed packageManager#6

Merged
terra-alex merged 1 commit into
mainfrom
worktree-streaming-bluetooth-connection
Jul 10, 2026
Merged

ci: npm OIDC release workflow (ported from terra-react); fix malformed packageManager#6
terra-alex merged 1 commit into
mainfrom
worktree-streaming-bluetooth-connection

Conversation

@terra-alex

Copy link
Copy Markdown
Contributor

What

  • release_package.yml, ported from terra-react: publishes react-native-terra-rt-react to npm via trusted publishing (OIDC) — no stored token. Triggered by a GitHub Release, or workflow_dispatch (used by the new bump-terra-rt-react workflows in TerraRTAndroidPackage/TerraRTiOSPackage). The bob build runs explicitly because publish uses --ignore-scripts and this package has no prepare script.
  • Fixes the long-red CI: "packageManager": "^yarn@1.22.15" is malformed (bad semver prefix) and the yarn 1.22.x on current runner images hard-refuses to run against it — every CI job has failed on this since at least Sep 2025. Corrected to yarn@1.22.22.

Testing

yarn install --frozen-lockfile + yarn prepack verified locally after the fix (lib/commonjs, lib/module, lib/typescript built).

Manual step before first publish

Add a Trusted Publisher on npmjs.com for react-native-terra-rt-react: org tryterra, repo terra-rt-react, workflow release_package.yml (mirror of terra-react's config).

…ormed packageManager

The packageManager field '^yarn@1.22.15' is invalid (bad semver prefix) and
modern yarn 1.22.x hard-refuses to run against it — this is what has been
failing CI since the runner image bumped yarn. Publish runs the bob build
explicitly because npm publish uses --ignore-scripts and there is no prepare
script.
@terra-alex
terra-alex merged commit 87ebfc1 into main Jul 10, 2026
3 checks 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