Skip to content

Commit

Permalink
Remove yarn from “Deploying”
Browse files Browse the repository at this point in the history
TODO: no sure if to remove/convert yarn example from GitLab instructions on this page, since GitLab might rely on yarn and not npm.
  • Loading branch information
giladronat committed Mar 19, 2018
1 parent bfe2384 commit 749a704
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/docs/deploy-gatsby.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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 [email protected]: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`.

Expand Down

0 comments on commit 749a704

Please sign in to comment.