-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nuget does not appear in "additional release links" #679
Comments
I would make the PR for it, but there are 3 issues:
On github the url to the released nupkg is https://github.com/xxx/yyy/pkgs/nuget/ppp/nnn with xxx/yyy being the standard org/repo and ppp is the nuget package name, and nnn is some id I have no idea where to find. On nuget.org, link is a bit easier https://www.nuget.org/packages/ppp/vvv with ppp being package name and vvv being release tag. In both cases however, the actual url to use has little to do with the
|
I guess returning an url is relatively straight forward, since we don't support GitHub package registry yet. But if we want to support #627 we get a problem and need to decide which url to return. So for your questions:
This may also be relevant: semantic-release/semantic-release#2123 |
I need to dig around a little bit more, maybe we can parse the output of |
The "cheap" workaround is simply just to make it a config setting. e.g. |
The cheap workaround is probably the only one for now, parsing the package name from dotnet pack output is doable but I am not sure if it is possible to pass this to the publish step.
I am unsure if this is possible at all with Semantic Release, the prepare step could return the list of parsed packages but how/where would that be accessible in the publish step I don't know. An alternative would be to load the file list in the publish step and then parse the file names instead of dotnet pack output. Currently no information is passed between the two steps, this relies solely on the hardcoded |
|
I still don't know how to get that seemingly unique ID at the end of a package version's URL, but it should be possible to parse URLs from the Recent Versions on the package's page (e.g. https://github.com/HaloSPV3/HXE/pkgs/nuget/HXE). <div data-view-component="true" class="Box">
<div id="header-ef480081-b7b1-4581-ade7-b3088c7642c9" data-view-component="true" class="Box-header">
<h3 class="f5">Recent Versions</h3>
</div>
<ul aria-labelledby="header-ef480081-b7b1-4581-ade7-b3088c7642c9" data-view-component="true">
<li data-view-component="true" class="Box-row">
<div class="d-flex">
<div class="col-10 d-flex flex-auto flex-column" style="overflow: hidden;">
<div class="d-inline-flex flex-auto">
<a class="Link--primary text-bold f4" style="text-overflow: ellipsis" href="/orgs/HaloSPV3/packages/nuget/HXE/50453270">2.1.3-ci.1</a>
<div class="flex-self-center">
<span data-view-component="true" class="Label Label--success mx-2">Latest</span>
</div>
</div>
<div class="css-truncate css-truncate-target d-block" style="max-width: 540px;">
<div class="f6 color-fg-muted">
Published over 2 years ago
</div>
</div>
</div>
<div class="ml-3 flex-self-center">
<span class="color-fg-muted overflow-hidden no-wrap f6 ml-1" style="text-overflow: ellipsis; display: inline-block">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-download d-inline-block v-align-bottom">
<path d="M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z"/>
<path d="M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z"/>
</svg>
0
</span>
</div>
</div>
</li>
<li data-view-component="true" class="Box-row">
<div class="d-flex">
<div class="col-10 d-flex flex-auto flex-column" style="overflow: hidden;">
<div class="d-inline-flex flex-auto">
<a class="Link--primary text-bold f4" style="text-overflow: ellipsis" href="/orgs/HaloSPV3/packages/nuget/HXE/50454063">2.0.1</a>
</div>
<div class="css-truncate css-truncate-target d-block" style="max-width: 540px;">
<div class="f6 color-fg-muted">
Published almost 3 years ago
</div>
</div>
</div>
<div class="ml-3 flex-self-center">
<span class="color-fg-muted overflow-hidden no-wrap f6 ml-1" style="text-overflow: ellipsis; display: inline-block">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-download d-inline-block v-align-bottom">
<path d="M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z"/>
<path d="M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z"/>
</svg>
0
</span>
</div>
</div>
</li>
<li data-view-component="true" class="Box-row">
<div class="d-flex">
<div class="col-10 d-flex flex-auto flex-column" style="overflow: hidden;">
<div class="d-inline-flex flex-auto">
<a class="Link--primary text-bold f4" style="text-overflow: ellipsis" href="/orgs/HaloSPV3/packages/nuget/HXE/50453268">1.1.1-ci.16</a>
</div>
<div class="css-truncate css-truncate-target d-block" style="max-width: 540px;">
<div class="f6 color-fg-muted">
Published almost 3 years ago
</div>
</div>
</div>
<div class="ml-3 flex-self-center">
<span class="color-fg-muted overflow-hidden no-wrap f6 ml-1" style="text-overflow: ellipsis; display: inline-block">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-download d-inline-block v-align-bottom">
<path d="M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z"/>
<path d="M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z"/>
</svg>
0
</span>
</div>
</div>
</li>
<li data-view-component="true" class="Box-row">
<div class="d-flex">
<div class="col-10 d-flex flex-auto flex-column" style="overflow: hidden;">
<div class="d-inline-flex flex-auto">
<a class="Link--primary text-bold f4" style="text-overflow: ellipsis" href="/orgs/HaloSPV3/packages/nuget/HXE/50456820">1.1.1-ci.15</a>
</div>
<div class="css-truncate css-truncate-target d-block" style="max-width: 540px;">
<div class="f6 color-fg-muted">
Published almost 3 years ago
</div>
</div>
</div>
<div class="ml-3 flex-self-center">
<span class="color-fg-muted overflow-hidden no-wrap f6 ml-1" style="text-overflow: ellipsis; display: inline-block">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-download d-inline-block v-align-bottom">
<path d="M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z"/>
<path d="M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z"/>
</svg>
0
</span>
</div>
</div>
</li>
<li data-view-component="true" class="Box-row">
<div class="d-flex">
<div class="col-10 d-flex flex-auto flex-column" style="overflow: hidden;">
<div class="d-inline-flex flex-auto">
<a class="Link--primary text-bold f4" style="text-overflow: ellipsis" href="/orgs/HaloSPV3/packages/nuget/HXE/50456816">1.1.1-ci.14</a>
</div>
<div class="css-truncate css-truncate-target d-block" style="max-width: 540px;">
<div class="f6 color-fg-muted">
Published almost 3 years ago
</div>
</div>
</div>
<div class="ml-3 flex-self-center">
<span class="color-fg-muted overflow-hidden no-wrap f6 ml-1" style="text-overflow: ellipsis; display: inline-block">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-download d-inline-block v-align-bottom">
<path d="M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z"/>
<path d="M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z"/>
</svg>
0
</span>
</div>
</div>
</li>
</ul>
<div data-view-component="true" class="Box-footer">
<a href="/orgs/HaloSPV3/packages/nuget/HXE/versions">View and manage all versions</a>
</div>
</div> This page will need to be parsed after the |
semantic-release/github#282
https://github.com/droidsolutions/semantic-release-nuget/blob/main/src/publish.ts should return a
The text was updated successfully, but these errors were encountered: