From 7f47bc1bbda758917ef4b95a2f42d0dbeb832cd7 Mon Sep 17 00:00:00 2001 From: Remi_IO Date: Tue, 11 Jul 2023 05:05:45 +0800 Subject: [PATCH] fix: typos in quickstart packages (#26553) Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com> --- content/packages/quickstart.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/content/packages/quickstart.md b/content/packages/quickstart.md index 14eb5e5088..d4e3db54a8 100644 --- a/content/packages/quickstart.md +++ b/content/packages/quickstart.md @@ -27,16 +27,10 @@ In this guide, you'll create a {% data variables.product.prodname_actions %} wor ``` 1. Create an `index.js` file and add a basic alert to say "Hello world!" - {% raw %} - ```javascript copy console.log("Hello, World!"); ``` - - {% endraw %} 1. Initialize an npm package with `npm init`. In the package initialization wizard, enter your package with the name: _`@YOUR-USERNAME/YOUR-REPOSITORY`_, and set the test script to `exit 0`. This will generate a `package.json` file with information about your package. - {% raw %} - ```shell $ npm init ... @@ -45,8 +39,6 @@ In this guide, you'll create a {% data variables.product.prodname_actions %} wor test command: exit 0 ... ``` - - {% endraw %} 1. Run `npm install` to generate the `package-lock.json` file, then commit and push your changes to {% data variables.product.prodname_dotcom %}. ```shell @@ -97,23 +89,15 @@ In this guide, you'll create a {% data variables.product.prodname_actions %} wor 1. Tell npm which scope and registry to publish packages to using one of the following methods: - Add an npm configuration file for the repository by creating a `.npmrc` file in the root directory with the contents: - {% raw %} - ```shell @YOUR-USERNAME:registry=https://npm.pkg.github.com ``` - - {% endraw %} - Edit the `package.json` file and specify the `publishConfig` key: - {% raw %} - ```shell "publishConfig": { "@YOUR-USERNAME:registry": "https://npm.pkg.github.com" } ``` - - {% endraw %} 1. Commit and push your changes to {% data variables.product.prodname_dotcom %}. ```shell