diff --git a/.circleci/config.yml b/.circleci/config.yml index 8509f38f6..e62566e1a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: build: docker: # specify the version you desire here - - image: circleci/ruby:2.4.2-node + - image: circleci/ruby:2.4.2-node-browsers # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images @@ -42,6 +42,14 @@ jobs: key: v1-dependencies-{{ checksum "Gemfile.lock" }} # Frontend setup + - run: + name: "Node.js と npm を更新" + command: | + curl -sSL "https://nodejs.org/dist/v12.8.1/node-v12.8.1-linux-x64.tar.xz" | sudo tar --strip-components=2 -xJ -C /usr/local/bin/ node-v12.8.1-linux-x64/bin/node + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - + echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list + sudo apt-get update && sudo apt-get install yarn + - run: name: build frontend working_directory: frontend