Skip to content

Commit b4ebf92

Browse files
markphipgithub-actions
andauthored
Automated documentation update [skip ci] (#28)
Co-authored-by: github-actions <github-actions@github.com>
1 parent 861d780 commit b4ebf92

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/artifacts-helper/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ and optionally configures an alias for `dotnet`, `nuget`, `npm`, and `yarn` that
2727
for pulling artifacts from a feed before running the command.
2828

2929
For `npm` and `yarn` this requires that your `~/.npmrc` file is configured to use the ${ARTIFACTS_ACCESSTOKEN}
30-
environment variable for the password. A helper script has been added that you can use to write your `~/.npmrc`
30+
environment variable for the `authToken`. A helper script has been added that you can use to write your `~/.npmrc`
3131
file during your setup process, though there are many ways you could accomplish this. To use the script, run it like
3232
this:
3333

@@ -38,7 +38,16 @@ write-npm.sh pkgs.dev.azure.com/orgname/projectname/_packaging/feed3/npm usernam
3838
```
3939

4040
You must pass the feed name to the script, but you can optionally provide a username and email if desired. Defaults
41-
are put in place if they are not provided.
41+
are put in place if they are not provided. An example of the `.npmrc` file created is this:
42+
43+
```
44+
//pkgs.dev.azure.com/orgname/projectname/_packaging/feed1/npm/registry/:username=codespaces
45+
//pkgs.dev.azure.com/orgname/projectname/_packaging/feed1/npm/registry/:_authToken=${ARTIFACTS_ACCESSTOKEN}
46+
//pkgs.dev.azure.com/orgname/projectname/_packaging/feed1/npm/registry/:email=codespaces@github.com
47+
//pkgs.dev.azure.com/orgname/projectname/_packaging/feed1/npm/:username=codespaces
48+
//pkgs.dev.azure.com/orgname/projectname/_packaging/feed1/npm/:_authToken=${ARTIFACTS_ACCESSTOKEN}
49+
//pkgs.dev.azure.com/orgname/projectname/_packaging/feed1/npm/:email=codespaces@github.com
50+
```
4251

4352
## OS Support
4453

0 commit comments

Comments
 (0)