ci: setup

This commit is contained in:
Derrick Hammer 2023-06-23 05:07:03 -04:00
parent 03f4083674
commit d1d7f90b02
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 70 additions and 1 deletions

45
.circleci/config.yml Normal file
View File

@ -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

21
.releaserc Normal file
View File

@ -0,0 +1,21 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog"
],
"@semantic-release/git",
],
"branches": [
"master",
{
name: "develop",
prerelease: true
},
{
name: "develop-*",
prerelease: true
},
]
}

View File

@ -9,10 +9,13 @@
"import": "./lib/index.mjs" "import": "./lib/index.mjs"
}, },
"devDependencies": { "devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"binconv": "^0.2.0", "binconv": "^0.2.0",
"presetter": "*", "presetter": "*",
"presetter-preset-esm": "^4.0.1", "presetter-preset-esm": "^4.0.1",
"presetter-preset-rollup": "^4.0.1" "presetter-preset-rollup": "^4.0.1",
"semantic-release": "^21.0.5"
}, },
"readme": "ERROR: No README data found!", "readme": "ERROR: No README data found!",
"_id": "@lumeweb/kernel@0.1.0", "_id": "@lumeweb/kernel@0.1.0",