Skip to content

Commit 7a7cb47

Browse files
committed
fix: Save changelog to cache for building
1 parent c7ef7a0 commit 7a7cb47

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.circleci/config.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,20 @@ jobs: # a collection of steps
4747
git config --global user.email "ripixel+ci@gmail.com"
4848
git config --global user.name "CircleCi"
4949
- run:
50-
name: Standard version
50+
name: Bump version and generate changelog
5151
command: npm run release:ci
52+
- save_cache: # special step to save the cache
53+
key: versioned-cache-{{ checksum "package-lock.json" }}
54+
paths:
55+
- ~/tmp/node_modules
56+
- ~/tmp/CHANGELOG.md
5257

5358
build: # build the project - requires dependencies to have been installed
5459
executor: node-project
5560
steps:
5661
- checkout
5762
- restore_cache:
58-
key: dependency-cache-{{ checksum "package-lock.json" }}
63+
key: versioned-cache-{{ checksum "package-lock.json" }}
5964
- run: # run build
6065
name: Build
6166
command: |

0 commit comments

Comments
 (0)