Skip to content

[CI] Publish the npm package on tags via trusted publishing#24

Merged
Kocal merged 1 commit into
symfony:mainfrom
Kocal:feat/release-on-npm
Jul 13, 2026
Merged

[CI] Publish the npm package on tags via trusted publishing#24
Kocal merged 1 commit into
symfony:mainfrom
Kocal:feat/release-on-npm

Conversation

@Kocal

@Kocal Kocal commented Jul 13, 2026

Copy link
Copy Markdown
Member
Q A
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

Adds a Release on NPM workflow that publishes @symfony/reprise to npm when a v*.*.* tag is pushed. It's modeled closely on the battle-tested symfony/ux workflow.

  • Trusted publishing (OIDC): no NPM_TOKEN, just id-token: write. npm generates provenance automatically. Requires the package's trusted publisher to be configured on npmjs.com to point at this repo and the release-on-npm.yaml workflow.
  • Guardrails from symfony/ux: pinned action SHAs, persist-credentials: false, a pinned npm@11.16.0 (OIDC needs >= 11.5.1), pnpm install --frozen-lockfile, and pnpm publish --recursive --access public --no-git-checks --provenance.
  • Adapted for Reprise: the tag pattern is v*.*.*, the "tag is on a release branch" check targets main (Reprise has no X.x branches), and there's no committed-dist verification step -- Reprise gitignores assets/dist and builds it in CI, so there's nothing committed to diff against.

--recursive only reaches @symfony/reprise: the monorepo root and the playground package are both private.

Comment thread .github/workflows/release-on-npm.yaml Fixed
Comment thread .github/workflows/release-on-npm.yaml Dismissed
Add a Release on NPM workflow, modeled on symfony/ux, that publishes
@symfony/reprise on a v*.*.* tag push. It uses OIDC trusted publishing
(no NPM_TOKEN, id-token: write), verifies the tag is on main, builds with
pnpm, and runs pnpm publish --recursive --access public --no-git-checks
--provenance. Adapted for Reprise's single package on main (dist is built
in CI, not committed).
@Kocal Kocal force-pushed the feat/release-on-npm branch from a2779ba to 904959b Compare July 13, 2026 05:37
Comment thread .github/workflows/release-on-npm.yaml Dismissed
@Kocal Kocal merged commit c91170c into symfony:main Jul 13, 2026
20 checks passed
@Kocal Kocal deleted the feat/release-on-npm branch July 13, 2026 05:40
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.

2 participants