Skip to content

Commit

Permalink
ci(projects): set up docs, CI/CD, logo
Browse files Browse the repository at this point in the history
Added documentation and set up the entire pipeline
  • Loading branch information
Brecht Billiet authored and Brecht Billiet committed Oct 26, 2023
1 parent 84f42aa commit 71bd6ad
Show file tree
Hide file tree
Showing 17 changed files with 43,402 additions and 14,592 deletions.
9 changes: 9 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
extends: [
'@commitlint/config-conventional'
],
rules: {
'body-max-line-length': [0, 'always'],
'footer-max-line-length': [0, 'always']
}
};
30 changes: 30 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CD
on:
push:
branches:
- master
jobs:
cd:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout ✅
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup 🏗
uses: actions/setup-node@v2
with:
node-version: lts/*
cache: 'npm'
- name: Install ⚙️
run: npm ci
- name: Build 🛠
run: npm run build:ci
- name: Test 📋
run: npm run test:ci
- name: Publish 📢
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI
on:
pull_request:
branches:
- master
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout ✅
uses: actions/checkout@v2
- name: Setup 🏗
uses: actions/setup-node@v2
with:
node-version: lts/*
cache: 'npm'
- name: Install ⚙️
run: npm ci
- name: Build 🛠
run: npm run build:ci
- name: Test 📋
run: npm run test:ci
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit
17 changes: 17 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"branches": [
"master"
],
"plugins": [
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"pkgRoot": "dist/ngx-signal-state"
}
],
"@semantic-release/git",
"@semantic-release/github"
]
}
Loading

0 comments on commit 71bd6ad

Please sign in to comment.