ci: rewrite ci

This commit is contained in:
Derrick Hammer 2023-04-23 07:10:48 -04:00
parent 4f920d6958
commit 52c209dbb9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 28 additions and 26 deletions

View File

@ -3,32 +3,34 @@ version: 2.1
orbs: orbs:
node: circleci/node@5.1.0 node: circleci/node@5.1.0
workflows:
release:
jobs: jobs:
release: setup:
contexts:
- publish
docker: docker:
- image: "circleci/node:lts" - image: "circleci/node:lts"
steps: steps:
- checkout
- run:
name: Set Repo Origin
command: |
git remote set-url origin https://git.lumeweb.com/LumeWeb/relay.git
- add_ssh_keys: - add_ssh_keys:
fingerprints: fingerprints:
- "SHA256:Gs0mI8VeDvaMRBUlJMwnLgiBTodCWyHDXKSXQcXW1mo" - "SHA256:Gs0mI8VeDvaMRBUlJMwnLgiBTodCWyHDXKSXQcXW1mo"
- checkout
workflows:
release:
jobs:
- setup
- node/run: - node/run:
npm-run: build npm-run: build
- node/run:
npm-run: semantic-release
environment:
CLOUDSMITH_API_KEY: $CLOUDSMITH_API_KEY
filters: filters:
branches: branches:
only: only:
- master - master
- develop - develop
- /^develop-.*$/ - /^develop-.*$/
- node/run:
npm-run: semantic-release
filters:
branches:
only:
- master
- develop
- /^develop-.*$/