Add auth and ci

This commit is contained in:
Danny McCormick 2019-05-31 12:17:28 -04:00
parent eac926003b
commit caa2ca642d
9 changed files with 139 additions and 17 deletions

View file

@ -4,7 +4,7 @@ This action sets by node environment for use in actions by:
- optionally downloading and caching a version of node - npm by version spec and add to PATH
- TODO: registering problem matchers for error output
- TODO: configuring authentication for npm packages
- optionally configuring authentication for npm packages
- TODO: configuring proxy if the runner is configured to use a proxy (coming with private runners)
# Usage
@ -38,6 +38,17 @@ workflow:
- run: npm test
```
Auth:
```yaml
actions:
- uses: actions/setup-node@latest
with:
registryUrl: 'https://mycustomregistry.example.org'
registryToken: $ {{ token }}
authFile: 'optional/path/to/.npmrc/file'
- run: npm publish
```
# License
The scripts and documentation in this project are released under the [MIT License](LICENSE)