Skip to content
Permalink
Browse files

デプロイをCircleCIで自動化

  • Loading branch information...
h-sakano committed Dec 2, 2018
1 parent 913cdac commit 086399a50a9ffaa55219bf1e7f4285ff3a125454
Showing with 43 additions and 0 deletions.
  1. +42 −0 .circleci/config.yml
  2. +1 −0 package.json
@@ -0,0 +1,42 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
deploy:
docker:
- image: circleci/node:10
working_directory: ~/workspace
steps:
- checkout

- run:
name: install firebase-tools
command: yarn global add firebase-tools

- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
- v1-dependencies-

- run: yarn install

- run: yarn run build

- run: yarn run deploy

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}

workflows:
version: 2
build:
jobs:
- deploy:
filters:
branches:
only:
- master
@@ -5,6 +5,7 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"deploy": "firebase deploy --only hosting --token ${FIREBASE_TOKEN}",
"lint": "vue-cli-service lint"
},
"dependencies": {

0 comments on commit 086399a

Please sign in to comment.
You can’t perform that action at this time.