forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
bfe2384
commit 749a704
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [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`. | ||
|
||
|