Skip to content

🩹 [Patch]: Add more logging #43

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

Merged
merged 2 commits into from
Jan 24, 2025
Merged

🩹 [Patch]: Add more logging #43

merged 2 commits into from
Jan 24, 2025

Conversation

MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jan 24, 2025

Description

This pull request includes several changes to the Publish-PSModule script and the action.yml configuration file to improve logging.

Improvements to the Publish-PSModule script:

  • Added new module dependencies (Retry, GitHub) to the #Requires statement in scripts/helpers/Publish-PSModule.ps1.
  • Added [OutputType([void])] attribute to the Publish-PSModule function to specify the output type.
  • Replaced Write-Verbose with Write-Output for better visibility of key process steps and outputs. [1] [2] [3] [4] [5] [6] [7]
  • Introduced retry logic using the Retry module when fetching the latest version from PSGallery to handle transient errors.

Changes to the action.yml configuration file:

  • Updated the step name from Run Build-PSModule to Run Publish-PSModule.
  • Simplified the script path reference by removing unnecessary dot notation.

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@MariusStorhaug MariusStorhaug self-assigned this Jan 24, 2025
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner January 24, 2025 15:54
@MariusStorhaug MariusStorhaug merged commit 12425f8 into main Jan 24, 2025
9 checks passed
@MariusStorhaug MariusStorhaug deleted the Logging branch January 24, 2025 16:26
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.

1 participant