From 8abf07ec73147336fdd4d9129c8e63d7541909fb Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 23 Jun 2023 04:36:40 -0400 Subject: [PATCH] ci: initial config --- .circleci/config.yml | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..9a1f9d7 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,45 @@ +version: 2.1 + +orbs: + node: circleci/node@5.1.0 + ssh: credijusto/ssh@0.5.2 +workflows: + release: + jobs: + - node/run: + name: build + npm-run: build + post-steps: + - persist_to_workspace: + root: . + paths: + - lib/ + + filters: + branches: + only: + - master + - develop + - /^develop-.*$/ + - node/run: + name: release + npm-run: semantic-release + requires: + - build + filters: + branches: + only: + - master + - develop + - /^develop-.*$/ + + context: + - publish + setup: + - attach_workspace: + at: ./ + - add_ssh_keys: + fingerprints: + - "47:cf:a1:17:d9:81:8e:c5:51:e5:53:c8:33:e4:33:b9" + - ssh/ssh-add-host: + host_url: GITEA_HOST