Installation
Create a token with read:packages scope
- Generate a new personal access token
- Select
read:packagesscope, specify a name and expiration, then click 'Generate token' - Save a copy of the token securely
Prerequisites
If you are using PowerShell 7 or later, Microsoft.PowerShell.PSResourceGet is included.
Please use the below command if you are using an earlier version of PowerShell -
Install-Module -Name 'Microsoft.PowerShell.PSResourceGet'From GitHub Packages
# Register GitHub Packages source (one-time setup)
Register-PSResourceRepository -Name 'GitHub' -Uri 'https://nuget.pkg.github.com/jdarcyryan/index.json'
# Prepare token
$githubUsername = 'GITHUB_USERNAME'
$githubToken = 'GITHUB_TOKEN'
$githubCredential = [pscredential]::new(
$githubUsername,
(ConvertTo-SecureString $githubToken -AsPlainText -Force)
)
# Install the module
Install-PSResource -Name 'PSModuleTemplate' -Repository GitHub -Version 0.3.1 -Credential $githubCredentialDocumentation
Snapshot: PSModuleTemplate/0.3.1
This release was automatically generated by GitHub Actions
What's Changed
- jdr/release-2-for-demo by @jdarcyryan in #38
Full Changelog: 0.3.0...0.3.1