Skip to content

Commit 4a3fca1

Browse files
committed
cirecle build
1 parent 6d3381a commit 4a3fca1

1 file changed

Lines changed: 13 additions & 21 deletions

File tree

.circleci/config.yml

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,19 @@ jobs:
1313
# - setup_remote_docker:
1414
# docker_layer_caching: true
1515
- checkout
16-
- restore_cache:
17-
keys:
18-
- v1-dependencies-{{ checksum "package.json" }}
19-
- v1-dependencies-
20-
- run:
21-
name: Install Dependencies
22-
command: npm install
23-
- save_cache:
24-
key: v1-npm-deps-{{ checksum "package-lock.json" }}
25-
paths:
26-
- ./node_modules
27-
- run:
28-
name: build react
29-
command: npm run build
30-
# |docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD && \
31-
# docker build -t $DOCKER_USERNAME/test-react-app . && \
32-
# docker push $DOCKER_USERNAME/test-react-app \
33-
34-
- run:
35-
name: Firebase Deploy
36-
command: ./node_modules/.bin/firebase deploy --project $PROJECT_ID --token "$TOKEN_FIREBASE"
16+
- run:
17+
name: install npm
18+
command: npm i
19+
- run:
20+
name: build react
21+
command: npm run build
22+
# |
23+
# docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD && \
24+
# docker build -t $DOCKER_USERNAME/test-react-app . && \
25+
# docker push $DOCKER_USERNAME/test-react-app \
26+
- run:
27+
name: Firebase Deploy
28+
command: ./node_modules/.bin/firebase deploy --project $PROJECT_ID --token "$TOKEN_FIREBASE"
3729
workflows:
3830
version: 2
3931
deploy:

0 commit comments

Comments
 (0)