Skip to content

Commit 7f473cd

Browse files
authored
build: use cfa orb (#213)
* build: use cfa orb * fix scripts
1 parent ba2610b commit 7f473cd

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

.circleci/config.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
version: 2
1+
version: 2.1
2+
orbs:
3+
cfa: continuousauth/[email protected]
24
jobs:
35
test:
46
docker:
@@ -16,28 +18,16 @@ jobs:
1618
key: v1-dependencies-{{ checksum "yarn.lock" }}
1719
- run: yarn prettier:check
1820
- run: yarn test
19-
release:
20-
docker:
21-
- image: circleci/node:14
22-
steps:
23-
- checkout
24-
- restore_cache:
25-
keys:
26-
- v1-dependencies-{{ checksum "yarn.lock" }}
27-
- v1-dependencies-
28-
- run: yarn install
29-
- run: yarn build
30-
- run: npx [email protected]
3121
workflows:
32-
version: 2
3322
test_and_release:
3423
# Run the test jobs first, then the release only when all the test jobs are successful
3524
jobs:
3625
- test
37-
- release:
26+
- cfa/release:
3827
requires:
3928
- test
4029
filters:
4130
branches:
4231
only:
43-
- main
32+
- main
33+
context: cfa-release

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"main": "dist/index.js",
99
"scripts": {
1010
"build": "tsc",
11+
"prepare": "husky install",
12+
"prepublishOnly": "yarn build",
1113
"prettier:check": "prettier --list-different \"src/**/*.{ts,tsx}\"",
1214
"prettier:write": "prettier --write \"src/**/*.{ts,tsx}\"",
13-
"test": "yarn build && mocha",
14-
"semantic-release": "semantic-release",
15-
"prepare": "husky install"
15+
"test": "yarn build && mocha"
1616
},
1717
"author": {
1818
"name": "Samuel Attard",

0 commit comments

Comments
 (0)