提交 0434f159 编写于 作者: B Bronson Quick 提交者: fgiraud

fix: Add `npm ci` instructions for Travis CI

* Add npm ci instructions
fix #1844 
上级 ade328f8
......@@ -66,14 +66,17 @@ You can also run the above script in your CI setup to enable automatic deploymen
2. Create a file named `.travis.yml` in the root of your project.
3. Use GitHub Pages deploy provider template and follow the [travis documentation](https://docs.travis-ci.com/user/deployment/pages/).
3. Run `npm install` locally and commit `package-lock.json` as it’s required for `npm ci`.
4. Use GitHub Pages deploy provider template and follow the [travis documentation](https://docs.travis-ci.com/user/deployment/pages/).
``` yaml
language: node_js
node_js:
- lts/*
install:
- npm ci
script:
- npm install
- npm run docs:build
deploy:
provider: pages
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册