From b4150892afeb0fbee28dcbf942beaf2c319c33ca Mon Sep 17 00:00:00 2001 From: Magnus Markling Date: Sun, 28 Jul 2024 04:42:47 +0200 Subject: [PATCH] add npm login section to CONTRIBUTING.md (#89) --- CONTRIBUTING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 73c8658..ef3a26f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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: \ + +This allows `@actions-rs` npm packages to be downloaded. + ### Installing dependencies `npm install`