Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePetzer-ixo committed May 21, 2024
1 parent b32e1c9 commit 0593d2f
Show file tree
Hide file tree
Showing 7 changed files with 3,809 additions and 17 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/node-ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build and Release
on:
push:
branches:
- master
- develop

jobs:
build-and-release:
uses: ixofoundation/ixo-github-actions/.github/workflows/node-ci-build.yml@main
with:
commit_sha: ${{ github.sha }}
secrets: inherit
7 changes: 7 additions & 0 deletions .github/workflows/node-ci-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Pull Request Build and Test
on:
pull_request:

jobs:
call-ci-workflow:
uses: ixofoundation/ixo-github-actions/.github/workflows/node-ci-pr.yml@main
37 changes: 37 additions & 0 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: update docs
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: write

jobs:
ixo-cellnode-docs:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2

- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x

- name: install typedoc
run: npm install typedoc

- name: generate docs
run: npx typedoc src/* src/*/*

# run: echo ${GITHUB_REF##*/}

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
branch: master
target-folder: docs
62 changes: 62 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"branches": [
"main",
{
"name": "develop",
"channel": "alpha",
"prerelease": true
},
{
"name": "test",
"channel": "beta",
"prerelease": true
}
],
"ci": true,
"preset": "conventionalcommits",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "scope": "security", "release": "patch" },
{ "type": "chore", "release": false },
{ "type": "ci", "release": false },
{ "type": "docs", "release": false },
{ "type": "refactor", "release": false },
{ "type": "revert", "release": false },
{ "type": "style", "release": false },
{ "type": "test", "release": false },
{ "scope": "no-release", "release": false },
{ "scope": "release", "release": "patch" }
],
"presetConfig": true
}
],
[
"@semantic-release/release-notes-generator",
{
"presetConfig": true
}
],
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": ["package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 node:18
FROM --platform=linux/amd64 node:18.17.0

WORKDIR /app

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
"store": "^2.0.12"
},
"devDependencies": {
"nodemon": "2.0.20"
"@semantic-release/git": "^10.0.1",
"conventional-changelog-conventionalcommits": "^8.0.0",
"nodemon": "2.0.20",
"semantic-release": "22"
}
}
Loading

0 comments on commit 0593d2f

Please sign in to comment.