mirror of
https://github.com/actions/setup-node.git
synced 2025-07-23 23:18:25 +02:00
Add auth and ci
This commit is contained in:
parent
eac926003b
commit
caa2ca642d
9 changed files with 139 additions and 17 deletions
13
README.md
13
README.md
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue