From 749a704f2a5dfc62bd71cfd98d4bdc5e59d4b8c4 Mon Sep 17 00:00:00 2001 From: Gilad Ronat Date: Mon, 19 Mar 2018 20:18:58 +0900 Subject: [PATCH] =?UTF-8?q?Remove=20yarn=20from=20=E2=80=9CDeploying?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TODO: no sure if to remove/convert yarn example from GitLab instructions on this page, since GitLab might rely on yarn and not npm. --- docs/docs/deploy-gatsby.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/docs/deploy-gatsby.md b/docs/docs/deploy-gatsby.md index da1dcb825dbba..dfb13f78af7f9 100644 --- a/docs/docs/deploy-gatsby.md +++ b/docs/docs/deploy-gatsby.md @@ -56,8 +56,7 @@ now to create a new repository on GitHub. ### Use the NPM package `gh-pages` for deploying First add **gh-pages** as a `devDependency` of your site and create an npm -script to **deploy** your project by running `npm install gh-pages --save-dev` -or `yarn add gh-pages --dev` (if you have yarn installed). +script to **deploy** your project by running `npm install gh-pages --save-dev`. Then add a `deploy` script in your `package.json` file. @@ -84,7 +83,7 @@ repo, set up git in your project with `git init`. Then tell Gatsby where to deploy your site by adding the git remote address with https or ssh. Here is how to do it with https: `git remote add origin git@github.com:username/project-name.git`. -Now run `yarn deploy` or `npm run deploy`. Preview changes in your GitHub page +Now run `npm run deploy`. Preview changes in your GitHub page `https://username.github.io/project-name/`. You can also find the link to your site on GitHub under `Settings` > `GitHub Pages`.