From 6e4ad001a5e49c83b3ea6ac57a647f6906eed142 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 24 Jun 2023 19:41:57 -0400 Subject: [PATCH] feat: initial version --- @orb.yml | 11 +++++++++++ LICENSE | 2 +- README.md | 2 +- commands/build.yml | 9 +++++++++ commands/publish.yml | 23 +++++++++++++++++++++++ 5 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 @orb.yml create mode 100644 commands/build.yml create mode 100644 commands/publish.yml diff --git a/@orb.yml b/@orb.yml new file mode 100644 index 0000000..de326f9 --- /dev/null +++ b/@orb.yml @@ -0,0 +1,11 @@ +version: 2.1 + +description: > + Default Node CI Deploy Configuration for Lume Web repos +# What will your orb allow users to accomplish? +# Descriptions should be short, simple, and informative. + +# If your orb requires other orbs, you can import them like this. Otherwise remove the "orbs" stanza. +orbs: + node: circleci/node@5.1.0 + ssh: credijusto/ssh@0.5.2 diff --git a/LICENSE b/LICENSE index 2071b23..bd66f50 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +Copyright (c) 2023 Hammer Technologies LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/README.md b/README.md index 586713c..a3dc504 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# circleci-deploy-orb +# circleci-deploy-node-orb diff --git a/commands/build.yml b/commands/build.yml new file mode 100644 index 0000000..daba416 --- /dev/null +++ b/commands/build.yml @@ -0,0 +1,9 @@ +steps: + - node/run: + name: Build + npm-run: build + post-steps: + - persist_to_workspace: + root: . + paths: + - lib/ diff --git a/commands/publish.yml b/commands/publish.yml new file mode 100644 index 0000000..ab20108 --- /dev/null +++ b/commands/publish.yml @@ -0,0 +1,23 @@ +steps: + - node/run: + name: Publish + 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