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) 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 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/package.json b/package.json index c821706..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", @@ -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" 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 }], };