From 6fb6b10bf521412940c2d7cc61a7c23a68afab33 Mon Sep 17 00:00:00 2001 From: Miguel Ignacio Cabrera San Gil Date: Thu, 5 Sep 2024 23:49:12 +0100 Subject: [PATCH 1/5] chore: add format validation script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index c821706..61ca802 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "lint:watch": "esw --color --watch", "lint:fix": "npm run lint -- --fix", "format": "prettier --config .prettierrc '**/*.+(ts|tsx)'", + "format:check": "npm run format -- --check", "format:fix": "npm run format -- --write", "test": "vitest run", "semantic-release": "semantic-release" From 1485e8732b448ac7c6bb91f1a11da621f5176413 Mon Sep 17 00:00:00 2001 From: Miguel Ignacio Cabrera San Gil Date: Thu, 5 Sep 2024 23:36:49 +0100 Subject: [PATCH 2/5] chore(ci): improve CI process --- .github/workflows/{node.js.yml => ci.yml} | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) rename .github/workflows/{node.js.yml => ci.yml} (62%) diff --git a/.github/workflows/node.js.yml b/.github/workflows/ci.yml similarity index 62% rename from .github/workflows/node.js.yml rename to .github/workflows/ci.yml index 44f23f5..e282a94 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Node.js CI +name: CI on: push: @@ -19,6 +19,13 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: "npm" - - run: npm ci - - run: npm run build - - run: npm test \ No newline at end of file + - name: CI Setup + run: npm ci + - name: Code Quality Checks + run: | + npm run lint + npm run format:check + - name: Build + run: npm run build + - name: Test + run: npm test From 9aad893b5968375085e4a552743c6c79ab82aed3 Mon Sep 17 00:00:00 2001 From: Miguel Ignacio Cabrera San Gil Date: Thu, 5 Sep 2024 23:37:01 +0100 Subject: [PATCH 3/5] chore(cd): improve CD process --- .github/workflows/release.yml | 12 ++++++++++-- release.config.cjs | 3 +++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5429b68..d8423cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,16 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "lts/*" - - run: npm ci - - run: npm run build + - name: CI Setup + run: npm ci + - name: Code Quality Checks + run: | + npm run lint + npm run format:check + - name: Build + run: npm run build + - name: Test + run: npm test - run: npm audit signatures - name: Release env: diff --git a/release.config.cjs b/release.config.cjs index bfdae6e..9410148 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -1,3 +1,6 @@ +/** + * @type {import('semantic-release').GlobalConfig} + */ module.exports = { branches: ['main', { name: 'beta', prerelease: true }], }; From de5d3622cc741be87e9a736b26f139df7492920a Mon Sep 17 00:00:00 2001 From: Miguel Ignacio Cabrera San Gil Date: Thu, 5 Sep 2024 23:57:36 +0100 Subject: [PATCH 4/5] chore: inform contributors version is not kept up to date --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 61ca802..8042e0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leanmind/monads", - "version": "0.0.0", + "version": "0.0.0-semantically-released", "description": "A collection of monads implemented in TypeScript using object-oriented programming.", "keywords": [ "functional-programming", From 1a8164a936059aebf2694d3f13e405316690c119 Mon Sep 17 00:00:00 2001 From: Miguel Ignacio Cabrera San Gil Date: Fri, 6 Sep 2024 00:31:51 +0100 Subject: [PATCH 5/5] chore: add pull request template --- .github/PULL_REQUEST_TEMPLATE.md | 59 ++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..3e8f521 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,59 @@ + + +## What type of PR is this? (check all applicable) + +- [ ] Refactor +- [ ] Feature +- [ ] Bug Fix +- [ ] Optimization +- [ ] Documentation Update + +## Description + + + +## Related Tickets & Documents + + + +- Related Issue # +- Closes # + +## Added/updated tests? + +_We encourage you to keep the quality of the code by creating test._ + +- [ ] Yes +- [ ] No, and this is why: _please replace this line with details on why tests + have not been included_ +- [ ] I need help with writing tests + +## [optional] What gif best describes this PR or how it makes you feel? + +![alt_text](gif_link)