Skip to content

Commit

Permalink
Create a README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
jkiyo committed Sep 29, 2020
1 parent 302ab4b commit 2f7c845
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions README.md
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 }}
```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Azure Artifacts .npmrc configuration'
description: 'action-azure-artifacts-config-npmrc'
description: 'Github Action that configures the .npmrc for accessing private packages published on Azure Artifacts'
inputs:
feeds:
description: 'Comma separated list of feeds'
Expand Down

0 comments on commit 2f7c845

Please sign in to comment.