-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Github Action: Azure Artifacts .npmrc configuration | ||
|
||
Github Action that configures the .npmrc for accessing private packages published on Azure Artifacts. | ||
|
||
This action should automate the steps described on this doc: https://docs.microsoft.com/en-us/azure/devops/artifacts/get-started-npm?view=azure-devops&tabs=windows#set-up-your-npmrc-files | ||
|
||
## Inputs | ||
|
||
### `organization` | ||
|
||
**Required** The organization name. Example: `vizir`. | ||
|
||
### `project` | ||
|
||
**Required** The project name. This action only works for Feeds created inside a Project. Example: `vizir`. | ||
|
||
### `feeds` | ||
|
||
**Required** Comma separated list of feeds to authenticate. Example: `feed1,feed2`. | ||
|
||
### `username` | ||
|
||
**Required** The user name that will be set on `~/.npmrc`. Example: `vizir`. | ||
|
||
### `token` | ||
|
||
**Required** The Personal Access Token (PAT). Example: `abcdef1234567890`. | ||
|
||
## Example usage | ||
|
||
``` | ||
uses: Vizir/[email protected] | ||
with: | ||
organization: vizir | ||
project: vizir | ||
feeds: feed1,feed2 | ||
username: vizir | ||
token: ${{ secrets.AZURE_PAT }} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters