Skip to content

ci: make npm publish dist-tag an explicit choice (0.8) - #1349

Merged
msluszniak merged 2 commits into
release/0.8from
@ms/publish-dist-tag-0.8
Aug 4, 2026
Merged

ci: make npm publish dist-tag an explicit choice (0.8)#1349
msluszniak merged 2 commits into
release/0.8from
@ms/publish-dist-tag-0.8

Conversation

@msluszniak

@msluszniak msluszniak commented Aug 4, 2026

Copy link
Copy Markdown
Member

Description

Previously publish without latest checked published as nightly. But sometimes we want to publish new legacy version. This PR adds this possibility.

Introduces a breaking change?

  • Yes
  • No

Type of change

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Documentation update (improves or adds clarity to existing documentation)
  • Other (chores, tests, code style improvements etc.)

Tested on

  • iOS
  • Android

Testing instructions

After merge: Actions → NPM publish → Run workflow → ref release/0.8, release-type: legacy. Publishes 0.8.5 under the legacy dist-tag.

Screenshots

Related issues

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Additional notes

Backport of the main-branch fix so 0.8.5 can be dispatched under the
`legacy` dist-tag. The `latest-build` boolean mapped anything other than
true to nightly, so the 0.8.5 publish went out as
0.8.5-nightly-6e1cb0a-20260803 under `executorch-nightly`.
A single `legacy` dist-tag only points at one version, so once 0.9 takes it
over, a later 0.8 patch published as `legacy` would demote 0.9 back down.

Add an optional free-text `dist-tag` input for line-scoped tags like `v0.8`,
so each maintenance line keeps a stable install target and nothing has to
share `legacy`. Publishing under a throwaway tag and removing it afterwards
is not an option here: npm's OIDC trusted publishing authorizes `npm publish`
only, so a follow-up `npm dist-tag rm` has no credentials and the junk tag
would stick around.

The override moves the dist-tag only - the version still comes from
release-type - so combining it with nightly is rejected, as is anything npm
would refuse as a dist-tag.
@msluszniak
msluszniak merged commit 3f8a6eb into release/0.8 Aug 4, 2026
@msluszniak
msluszniak deleted the @ms/publish-dist-tag-0.8 branch August 4, 2026 14:14
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