2023-06-16 01:57:25 +00:00
|
|
|
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
|
2023-06-20 05:09:18 +00:00
|
|
|
setup:
|
|
|
|
- persist_to_workspace:
|
2023-06-20 05:15:14 +00:00
|
|
|
root: .
|
2023-06-20 05:09:18 +00:00
|
|
|
paths:
|
|
|
|
- lib/
|
|
|
|
|
2023-06-16 01:57:25 +00:00
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
- /^develop-.*$/
|
|
|
|
- node/run:
|
|
|
|
name: release
|
2023-06-20 04:56:34 +00:00
|
|
|
npm-run: semantic-release
|
2023-06-16 01:57:25 +00:00
|
|
|
requires:
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
- /^develop-.*$/
|
|
|
|
|
|
|
|
context:
|
|
|
|
- publish
|
|
|
|
setup:
|
|
|
|
- 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
|
2023-06-20 05:09:18 +00:00
|
|
|
- attach_workspace:
|
|
|
|
at: ./
|