build: use cfa orb (#77)
This commit is contained in:
Родитель
47197b854b
Коммит
fc1bf54d2a
|
@ -1,4 +1,6 @@
|
|||
version: 2
|
||||
version: 2.1
|
||||
orbs:
|
||||
cfa: continuousauth/npm@1.0.2
|
||||
jobs:
|
||||
test:
|
||||
docker:
|
||||
|
@ -17,28 +19,16 @@ jobs:
|
|||
- run: npx yarn prettier:check
|
||||
- run: npx yarn build
|
||||
- run: npx yarn test
|
||||
release:
|
||||
docker:
|
||||
- image: circleci/node:14
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "yarn.lock" }}
|
||||
- v1-dependencies-
|
||||
- run: npx yarn install
|
||||
- run: npx yarn build
|
||||
- run: npx semantic-release@17.4.5
|
||||
workflows:
|
||||
version: 2
|
||||
test_and_release:
|
||||
# Run the test jobs first, then the release only when all the test jobs are successful
|
||||
jobs:
|
||||
- test
|
||||
- release:
|
||||
- cfa/release:
|
||||
requires:
|
||||
- test
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- main
|
||||
context: cfa-release
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"prepublishOnly": "npx yarn build",
|
||||
"prettier:check": "prettier --list-different \"src/**/*.{ts,tsx}\"",
|
||||
"prettier:write": "prettier --write \"src/**/*.{ts,tsx}\"",
|
||||
"test": "jest"
|
||||
|
@ -56,4 +57,4 @@
|
|||
"url": "https://github.com/electron/docs-parser/issues"
|
||||
},
|
||||
"homepage": "https://github.com/electron/docs-parser#readme"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче