Skip to content

Commit

Permalink
update node & yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
kobakazu0429 committed Sep 22, 2019
1 parent 71c8ebb commit 2cac9aa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2cac9aa

Please sign in to comment.