-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Milan Andric
committed
Feb 23, 2019
1 parent
d069f7a
commit f8cd0b1
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:latest | ||
steps: | ||
- checkout | ||
- run: node -v | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
#- run: sudo npm install -g npm@latest | ||
- run: npm install | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
paths: | ||
- ./node_modules | ||
- run: npm test | ||
- run: npm run build | ||
- run: | | ||
name="$CIRCLE_PROJECT_REPONAME-$CIRCLE_BUILD_NUM" && \ | ||
mkdir packed && \ | ||
mv dist "$name" && \ | ||
tar zcf "$name.tgz" "$name" && \ | ||
mv "$name.tgz" packed/ | ||
- store_artifacts: | ||
path: packed | ||
destination: packed | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters