fix: resolve npm publish E404 and JReleaser artifact issues#11
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
- Remove --provenance from preliminary release to avoid OIDC E404 bug (npm/cli#8678, #8730, #8976: OIDC token exchange for new scoped packages returns 404 when trusted publisher is not configured) - Fix jreleaser.yml artifact path from {{projectName}}-{{projectVersion}}.tgz to operaton-operaton-mcp-{{projectVersion}}.tgz (npm pack for @operaton/operaton-mcp creates operaton-operaton-mcp-*.tgz) - Add npm pack step before JReleaser for both preliminary and final releases (JReleaser FLAT_BINARY needs the tarball to exist on disk) Co-authored-by: kthoms <265597+kthoms@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix the publishing error
fix: resolve npm publish E404 and JReleaser artifact issues
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The preliminary release was failing with
E404onnpm publishfor@operaton/operaton-mcp, and JReleaser would subsequently fail due to a wrong artifact path and a missing tarball.Changes
Remove
--provenancefrom preliminarynpm publish: The--provenanceflag triggers an OIDC token exchange in npm that returns 404 for packages not yet registered as "trusted publishers" on npmjs.org ([BUG] Publishing another version with OIDC fails to find an earlier published version of a scoped package npm/cli#8678, #8730, #8976). This masked the auth error as a confusing 404 instead of a clear 401. Provenance is kept on the final release.Fix
jreleaser.ymlartifact path:npm packon a scoped package (@operaton/operaton-mcp) strips@and replaces/with-, producingoperaton-operaton-mcp-{version}.tgz— notoperaton-mcp-{version}.tgzas previously configured.Add
npm packbefore each JReleaser step: JReleaser'sFLAT_BINARYdistribution requires the tarball to exist on disk before it can attach it to a GitHub Release. The workflow had no step creating it.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
www.npmjs.com/usr/bin/curl curl -s REDACTED -o /dev/null -w %{http_code}(dns block)If you need me to access, download, or install something from one of these locations, you can either:
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.