Skip to content

build(npm): Set publishConfig.tag=v8.14 on 8.14.x packages#6454

Merged
alwx merged 1 commit into
release/8.14from
alwx/backport/8.14-publishconfig-tag
Jul 16, 2026
Merged

build(npm): Set publishConfig.tag=v8.14 on 8.14.x packages#6454
alwx merged 1 commit into
release/8.14from
alwx/backport/8.14-publishconfig-tag

Conversation

@alwx

@alwx alwx commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix

📜 Description

Add "tag": "v8.14" under publishConfig in both publishable package.json files (@sentry/react-native, @sentry/expo-upload-sourcemaps). npm reads that at publish time and uses it as the default dist-tag when no --tag is passed on the CLI.

💡 Motivation and Context

Prior PR set craft's checkPackageName so craft would pass --tag=old automatically. That merged, but the retry still failed with the same Cannot implicitly apply the "latest" tag error — and craft's expected Adding tag ... warn never showed up in the run log. Something in the runtime path is preventing getPublishTag from doing its job here.

publishConfig.tag is a standard npm feature and bypasses the craft config path entirely, so it unblocks the 8.14.2 publish regardless. v8.14 reads better than the generic old and namespaces future 8.14.x hotfixes to the same tag.

Failing run: https://github.com/getsentry/publish/actions/runs/29435125643/job/87419718179

💚 How did you test it?

Config-only change. Verified by re-running the craft publish job after merge.

📝 Checklist

  • No breaking changes.

@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • build(npm): Set publishConfig.tag=v8.14 on 8.14.x packages by alwx in #6454

🤖 This preview updates automatically when you update the PR.

@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor
Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request

Generated by 🚫 dangerJS against 6934953

@alwx
alwx marked this pull request as ready for review July 15, 2026 20:46
npm 11 refuses to implicitly bump `latest` to a lower version, so
publishing 8.14.2 (with `latest` at 8.18.0) needs an explicit dist-tag.
Set `publishConfig.tag: "v8.14"` directly on both publishable packages
so npm itself picks it up regardless of what craft passes on the CLI.

The craft-side `checkPackageName` fix (previous PR) is still valid
belt-and-suspenders, but the retry after it landed still failed with
the same npm error and craft's expected "Adding tag ..." warn never
appeared in the log — this is the pragmatic fallback that unblocks
the 8.14.2 publish immediately. `v8.14` reads better than the generic
`old` and namespaces future 8.14.x hotfixes to the same tag.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@alwx
alwx force-pushed the alwx/backport/8.14-publishconfig-tag branch from 287eb77 to 6934953 Compare July 16, 2026 06:24
@alwx alwx changed the title build(npm): Set publishConfig.tag=old on 8.14.x packages build(npm): Set publishConfig.tag=v8.14 on 8.14.x packages Jul 16, 2026
@alwx
alwx requested a review from a team July 16, 2026 07:33
@alwx
alwx merged commit 2fc3098 into release/8.14 Jul 16, 2026
55 of 61 checks passed
@alwx
alwx deleted the alwx/backport/8.14-publishconfig-tag branch July 16, 2026 07:37
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