ci: rewrite ci
This commit is contained in:
parent
4f920d6958
commit
52c209dbb9
|
@ -3,32 +3,34 @@ version: 2.1
|
||||||
orbs:
|
orbs:
|
||||||
node: circleci/node@5.1.0
|
node: circleci/node@5.1.0
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
setup:
|
||||||
|
docker:
|
||||||
|
- image: "circleci/node:lts"
|
||||||
|
steps:
|
||||||
|
- add_ssh_keys:
|
||||||
|
fingerprints:
|
||||||
|
- "SHA256:Gs0mI8VeDvaMRBUlJMwnLgiBTodCWyHDXKSXQcXW1mo"
|
||||||
|
- checkout
|
||||||
workflows:
|
workflows:
|
||||||
release:
|
release:
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
- setup
|
||||||
contexts:
|
- node/run:
|
||||||
- publish
|
npm-run: build
|
||||||
docker:
|
filters:
|
||||||
- image: "circleci/node:lts"
|
branches:
|
||||||
steps:
|
only:
|
||||||
- checkout
|
- master
|
||||||
- run:
|
- develop
|
||||||
name: Set Repo Origin
|
- /^develop-.*$/
|
||||||
command: |
|
- node/run:
|
||||||
git remote set-url origin https://git.lumeweb.com/LumeWeb/relay.git
|
npm-run: semantic-release
|
||||||
- add_ssh_keys:
|
filters:
|
||||||
fingerprints:
|
branches:
|
||||||
- "SHA256:Gs0mI8VeDvaMRBUlJMwnLgiBTodCWyHDXKSXQcXW1mo"
|
only:
|
||||||
- node/run:
|
- master
|
||||||
npm-run: build
|
- develop
|
||||||
- node/run:
|
- /^develop-.*$/
|
||||||
npm-run: semantic-release
|
|
||||||
environment:
|
|
||||||
CLOUDSMITH_API_KEY: $CLOUDSMITH_API_KEY
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- develop
|
|
||||||
- /^develop-.*$/
|
|
||||||
|
|
Loading…
Reference in New Issue