Skip to content

Commit

Permalink
add npm login section to CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
memark committed Jul 27, 2024
1 parent afd6f0d commit 2735be5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ A good general description on how to develop a GitHub JavaScript action can be f

- 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

`npm install`
Expand Down

0 comments on commit 2735be5

Please sign in to comment.