Skip to content

Commit 0434f15

Browse files
BronsonQuickfgiraud
authored and
fgiraud
committed
fix: Add npm ci instructions for Travis CI
* Add npm ci instructions fix #1844
1 parent ade328f commit 0434f15

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/docs/docs/guide/deploy.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,17 @@ You can also run the above script in your CI setup to enable automatic deploymen
6666

6767
2. Create a file named `.travis.yml` in the root of your project.
6868

69-
3. Use GitHub Pages deploy provider template and follow the [travis documentation](https://docs.travis-ci.com/user/deployment/pages/).
69+
3. Run `npm install` locally and commit `package-lock.json` as it’s required for `npm ci`.
70+
71+
4. Use GitHub Pages deploy provider template and follow the [travis documentation](https://docs.travis-ci.com/user/deployment/pages/).
7072

7173
``` yaml
7274
language: node_js
7375
node_js:
7476
- lts/*
77+
install:
78+
- npm ci
7579
script:
76-
- npm install
7780
- npm run docs:build
7881
deploy:
7982
provider: pages

0 commit comments

Comments
 (0)