Skip to content

Commit cb11628

Browse files
committedNov 9, 2021
streamline ci plan
1 parent 50c0422 commit cb11628

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed
 

‎.circleci/config.yml

+12-19
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010
- image: circleci/node:14.18.0
1111
steps:
1212
- checkout
13-
- attach_workspace:
14-
at: ~/repo
1513
- run:
1614
name: Install dependencies
1715
command: yarn
@@ -38,24 +36,20 @@ jobs:
3836
# docker create -v /repo --name repo alpine:3.4 /bin/true
3937
# docker cp . repo:/repo
4038
# docker run -it --volumes-from repo --workdir /repo/bus node:8.15.0 yarn test:integration
39+
# Save workspace for subsequent jobs (i.e. test)
40+
- persist_to_workspace:
41+
root: .
42+
paths:
43+
- .
4144

4245
deploy:
4346
<<: *defaults
4447
docker:
4548
- image: circleci/node:14.18.0
4649
steps:
47-
- checkout
50+
# Reuse the workspace from the build job
4851
- attach_workspace:
49-
at: ~/repo
50-
- run:
51-
name: Install dependencies
52-
command: yarn
53-
- run:
54-
name: Bootstrap
55-
command: yarn run bootstrap
56-
- run:
57-
name: Build
58-
command: yarn run build
52+
at: .
5953
- run:
6054
name: Authenticate with registry
6155
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
@@ -67,12 +61,11 @@ workflows:
6761
version: 2
6862
build-deploy:
6963
jobs:
70-
- build:
71-
filters:
72-
branches:
73-
ignore:
74-
- master
64+
- build
7565
- deploy:
66+
requires:
67+
- build
7668
filters:
7769
branches:
78-
only: master
70+
only:
71+
- master

0 commit comments

Comments
 (0)
Please sign in to comment.