mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-24 00:49:34 +01:00
add npm login section to CONTRIBUTING.md (#89)
This commit is contained in:
parent
afd6f0d40c
commit
b4150892af
1 changed files with 13 additions and 0 deletions
|
@ -10,6 +10,19 @@ A good general description on how to develop a GitHub JavaScript action can be f
|
||||||
|
|
||||||
- Node 20
|
- Node 20
|
||||||
|
|
||||||
|
### Logging in to GitHub package registry
|
||||||
|
|
||||||
|
1. Create a classic Personal Access Token (PAT) for your GitHub profile,
|
||||||
|
with permission `read:packages`:
|
||||||
|
https://github.com/settings/tokens
|
||||||
|
|
||||||
|
1. Use that token to log in to the registry:
|
||||||
|
`npm login --registry https://npm.pkg.github.com --scope @actions-rs`
|
||||||
|
Username: dummy
|
||||||
|
Password: \<paste your PAT here\>
|
||||||
|
|
||||||
|
This allows `@actions-rs` npm packages to be downloaded.
|
||||||
|
|
||||||
### Installing dependencies
|
### Installing dependencies
|
||||||
|
|
||||||
`npm install`
|
`npm install`
|
||||||
|
|
Loading…
Reference in a new issue