From 2cac9aa81d2e3ed9e754973d94a931c075cbc2fd Mon Sep 17 00:00:00 2001 From: kobakakzu0429 Date: Mon, 23 Sep 2019 01:38:09 +0900 Subject: [PATCH] update node & yarn --- .circleci/config.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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