question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Publish Module Package-Only

See original GitHub issue

https://github.com/PowerShell/PowerShellGet/blob/e669ac1af1ced7ff33a2cba294cbd859e1c6ba12/srcOld/code/PublishPSResource.cs#L477

The remaining publish to repository after this line should be gated in a switch parameter e.g. -BuildOnly, that if specified instead emits the path to the built .nupkg file rather than publishing to a repository. This is useful if you want to use the nupkg in a different manner, say uploading to Github Artifacts, caching the build result, or other CI/CD driven activities.

Currently with PSGetv2 a workaround has to be done which is publish to a local file repository, this would be much faster and more explicit.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SydneyhSmithcommented, Mar 25, 2021

Thanks @JustinGrote for Publish-PSResource we plan to add a -DestinationPath parameter (https://github.com/PowerShell/PowerShellGet/blob/0cae3522fae8f723bd9cd01bdeccfaf4f23ab09b/Docs/PublishPSResource.md#-destinationpath) which allows you to publish a nupkg to a local path…would this cover your scenario?

0reactions
msftbot[bot]commented, Dec 20, 2021

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Feature Request: Conveniently Publish 1 Subtopic
When publishing a module for a student, I only want to publish one subtopic under the main module. Yet to do that, I...
Read more >
Can we publish only dynamic feature modules when there ...
No, it's not possible. To ensure full compatibility between the base module and the dynamic feature modules, the whole App Bundle with all ......
Read more >
Link and publish not the package directory but it's child dist ...
I guess many more questions and feature request are going to come up for publishing a dedicated folder (e.g. dist ) because the...
Read more >
DQMH Feature Requests - NI Community - National Instruments
EDIT: We now have a place for you to post DQMH Feature requests here: ... to turn modules into installed packages with the...
Read more >
PowerShell Gallery Publishing Guidelines and Best Practices
Best practices for publishing packages · Use PSScriptAnalyzer · Include documentation and examples · Be responsive to feedback · Provide modules ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found