LoginSignup
0

More than 5 years have passed since last update.

Github > Travis CI > gh-pages へデプロイ (書き込み中)

Last updated at Posted at 2018-12-11

TravisCI

image

image

image

image

image

Personal access tokens

Personal Access Tokens

image

「Environment Variables」で、取得した Token を登録します。

image

build

image

errorになりました。


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! redux-saga-axios-template@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the redux-saga-axios-template@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


以下のようなWarningが出てるとCIが失敗するようです。

./src/redux/sagas/index.js
Line 1: 'take' is defined but never used no-unused-vars
Line 1: 'fork' is defined but never used no-unused-vars
Line 1: 'delay' is defined but never used no-unused-vars
Line 2: 'history' is defined but never used no-unused-vars

こんな感じで成功しました
```

yarn run v1.3.2
(node:5273) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
$ react-scripts build
Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
The project was built assuming it is hosted at /redux-saga-axios-template/.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
To publish it at https://sugasaki.github.io/redux-saga-axios-template/, run:
yarn run deploy
Find out more about deployment here:
http://bit.ly/CRA-deploy
Done in 23.05s.
The command "yarn run build" exited with 0.

Installing deploy dependencies
Logged in as @sugasaki (sugasaki)
Deploying application
Done. Your build exited with 0.
```

image

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0