From f5541143bb9b305cb33ec1fb2ebc9b6856e77f0c Mon Sep 17 00:00:00 2001 From: Joseph Eccles Date: Mon, 16 Jan 2023 17:12:05 +0000 Subject: [PATCH] docs: add login step to getting started --- storybook/stories/hello/GettingStarted.stories.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/storybook/stories/hello/GettingStarted.stories.mdx b/storybook/stories/hello/GettingStarted.stories.mdx index daae2e40..ee6629e9 100644 --- a/storybook/stories/hello/GettingStarted.stories.mdx +++ b/storybook/stories/hello/GettingStarted.stories.mdx @@ -4,6 +4,20 @@ import { Meta, Canvas, Story } from "@storybook/addon-docs/blocks"; # Getting Started +## Login + +In order to download the Made for Developers packages first you must create a Personal Access Token. Follow the steps provided here in the GitHub Documention on Creating a Personal Access Token. + +When creating the Personal Access Token, under the 'Select scopes' section make sure to check the 'write:packages' checkbox before clicking the 'Generate Token' button. Then once the token is generated make sure to copy the Personal Access Token somewhere as you will need it to log in to GitHub using the command line. + +With your Personal Access Token now created open the command line window and navigate to the root directory of your project (where package.json lives). You will now need to authenticate by logging into NPM. Use the `npm login` command, replacing _USERNAME_ with your GitHub username, _TOKEN_ with your Personal Access Toke (paste in the token you generated earlier)n, and _PUBLIC-EMAIL-ADDRESS_ with your email address. + +``` +> Username: USERNAME +> Password: TOKEN +> Email: PUBLIC-EMAIL-ADDRESS +``` + ## Install Made for Developers packages can be downloaded via the Mastercard GitHub .