From 9e5b69fccb194511edfd2b044ab57dc8cd1e199c Mon Sep 17 00:00:00 2001 From: Tural Hajiyev Date: Tue, 1 Sep 2026 14:50:55 +0200 Subject: [PATCH 1/2] CI and Readme changes --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ README.md | 10 ++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a70f33a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Test + run: npm test diff --git a/README.md b/README.md index d500cfe..13edf0c 100644 --- a/README.md +++ b/README.md @@ -156,3 +156,13 @@ import { parse } from 'react-props-parser'; const doc = parse('./Button.tsx', { maxTypeNameLength: 80 }); ``` +## Branching strategy + +As this project is at early stage, I just push everything to main branch directly. I understand it's not feasable, and if I want it to improve as proper library, I need to follow correct rules. My main idea is having: + +- `main` - always in a working, relesable state. Nothing broken merges here. +- `feature/fix branches` - one per change, branched off `main`. + +All feature/fix branches can be merge back into `main` via PR. + +In addition, I plan to tag every published version, matching the npm version exactly. From afd6fa9fbaeb0762e46764ab9458056287eced07 Mon Sep 17 00:00:00 2001 From: Tural Hajiyev Date: Tue, 1 Sep 2026 14:51:42 +0200 Subject: [PATCH 2/2] Fixed typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 13edf0c..0740aa5 100644 --- a/README.md +++ b/README.md @@ -158,9 +158,9 @@ const doc = parse('./Button.tsx', { maxTypeNameLength: 80 }); ``` ## Branching strategy -As this project is at early stage, I just push everything to main branch directly. I understand it's not feasable, and if I want it to improve as proper library, I need to follow correct rules. My main idea is having: +As this project is at early stage, I just push everything to main branch directly. I understand it's not feasible, and if I want it to improve as proper library, I need to follow correct rules. My main idea is having: -- `main` - always in a working, relesable state. Nothing broken merges here. +- `main` - always in a working, releasable state. Nothing broken merges here. - `feature/fix branches` - one per change, branched off `main`. All feature/fix branches can be merge back into `main` via PR.