You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates the publishing documentation and workflow to remove the `-ReadMe` parameter from the `Publish-Module` command.
- 📝 [docs] Removes the `-ReadMe` parameter from `Publish-Module` in the publishing documentation.
- The metadata normalization script now handles embedding the README, license, and icon into the staged `.nupkg` package.
- Simplifies the `Publish-Module` command in documentation examples for PowerShell Gallery, GitHub Packages, and private feeds.
- 👷 [ci] Removes the `-ReadMe` parameter from the `Publish-Module` command in the GitHub Actions workflow.
- Relies on the metadata normalization script to bundle the README file into the NuGet package.
Signed-off-by: Nick2bad4u <[email protected]>
If you stage the package locally with `Publish-Module` (for example by targeting a temporary repository), run the metadata normalizer before pushing:
27
+
PowerShellGet versions prior to 2.2.6 do not embed README or license assets automatically. When you stage the package locally with `Publish-Module` (for example by targeting a temporary repository), run the metadata normalizer before pushing:
@@ -38,7 +38,7 @@ The GitHub publish workflow runs this script automatically.
38
38
1. Create an account at <https://www.powershellgallery.com>.
39
39
2. Generate an API key from your profile.
40
40
3. Store the key securely (e.g., GitHub secret `PSGALLERY_API_KEY`).
41
-
4. Ensure `README.md` is present in the module root (`ColorScripts-Enhanced/README.md`). When `Publish-Module` runs with `-ReadMe`, it embeds the file so the online gallery renders it automatically.
41
+
4. Ensure `README.md` is present in the module root (`ColorScripts-Enhanced/README.md`). The metadata normalization script bundles this file (along with `LICENSE` and the icon) into the staged `.nupkg` prior to publishing.
42
42
43
43
### Testing Before Publishing
44
44
@@ -74,7 +74,9 @@ GitHub Packages provides a private or public NuGet feed.
> **Tip:** When you stage the package locally before pushing to GitHub Packages, run `Update-NuGetPackageMetadata.ps1` against the resulting `.nupkg` so the README, license, and icon are embedded.
78
80
```
79
81
80
82
### Installing from GitHub Packages
@@ -91,7 +93,9 @@ For enterprise environments you can host the module in Azure Artifacts or any Nu
> **Tip:** Normalize staged packages with `Update-NuGetPackageMetadata.ps1` before pushing them to your private feed to ensure gallery-friendly metadata.
0 commit comments