Skip to content

Commit adb2384

Browse files
mattstromMatt Strom
andauthored
ci: correction to workflow file (#239)
* ci: correction to workflow file * ci: revert deletion of circleci config file Co-authored-by: Matt Strom <matt.strom@evolv.ai>
1 parent 1db4a38 commit adb2384

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.circleci/config.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:10.18.0
6+
working_directory: ~/repo
7+
steps:
8+
- checkout
9+
- restore_cache:
10+
keys:
11+
- v1-dependencies-{{ checksum "package.json" }}
12+
- v1-dependencies-
13+
- run: npm ci
14+
- run: npm run build
15+
- save_cache:
16+
paths:
17+
- node_modules
18+
key: v1-dependencies-{{ checksum "package.json" }}
19+
- persist_to_workspace:
20+
root: ~/repo
21+
paths: .
22+
23+
release:
24+
docker:
25+
- image: circleci/node:10.18.0
26+
working_directory: ~/repo
27+
steps:
28+
- attach_workspace:
29+
at: ~/repo
30+
- run: npx semantic-release
31+
32+
workflows:
33+
version: 2
34+
build_and_release:
35+
jobs:
36+
- build:
37+
filters:
38+
tags:
39+
ignore: /^\d+\.\d+\.\d+/
40+
- release:
41+
requires:
42+
- build
43+
filters:
44+
branches:
45+
only: master

.github/workflows/on-push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
node-version: '16'
3737

3838
- name: Install Node Packages
39-
working-directory: .source
4039
run: |
4140
npm ci --production=false
4241

0 commit comments

Comments
 (0)