From 40e89f94b0d170d0cc50821369f064dbef623ea5 Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Mon, 30 Sep 2024 12:20:01 -0500 Subject: [PATCH 1/4] chore(docs): update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 377c325..3533d6b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Kurocado Studio Style Guide +[Read the docs](https://kurocado-studio.github.io/styleguide/starter-topic.html) + This repository contains the style guide for our project, specifically tailored for TypeScript. We have used the Vercel Style Guide as a base for our TypeScript configurations, and aspire to maintain the same high standards in our code quality. From b81208ef1fe8809e8da918d6cb6b4535b16db6f4 Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:51:59 -0500 Subject: [PATCH 2/4] fix(ci): deletes empty file --- .github/workflows/deploy_docs.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .github/workflows/deploy_docs.yml diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml deleted file mode 100644 index e69de29..0000000 From 9ec63017b57451507bc9bec77d7e38db0d52a075 Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:07:40 -0500 Subject: [PATCH 3/4] chore(ci): updates file name and steps --- .github/workflows/ci.yml | 4 ++-- .../{ci_writerside_docs.yml => documentation.yml} | 15 +++++++-------- package.json | 2 +- 3 files changed, 10 insertions(+), 11 deletions(-) rename .github/workflows/{ci_writerside_docs.yml => documentation.yml} (89%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 953d2b7..b34b5a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI/CD Workflow +name: Code Quality permissions: pull-requests: write @@ -17,7 +17,7 @@ on: - main jobs: - pipeline: + code-quality: runs-on: ubuntu-latest steps: - name: Checkout repository diff --git a/.github/workflows/ci_writerside_docs.yml b/.github/workflows/documentation.yml similarity index 89% rename from .github/workflows/ci_writerside_docs.yml rename to .github/workflows/documentation.yml index eaa1fd0..99d150a 100644 --- a/.github/workflows/ci_writerside_docs.yml +++ b/.github/workflows/documentation.yml @@ -1,11 +1,10 @@ -name: Build, Test, and Deploy Documentation +name: Writerside Documentation on: - push: - branches: ['main'] pull_request: - branches: ['main'] - workflow_dispatch: + push: + branches: + - main permissions: contents: write @@ -18,7 +17,7 @@ env: DOCKER_VERSION: '242.21870' # Specific Docker version jobs: - build-and-deploy: + build-and-deploy-docs: runs-on: ubuntu-latest steps: @@ -40,7 +39,7 @@ jobs: with: name: docs path: | - artifacts/${{ env.ARTIFACT }} # Artifact inside the artifacts folder + artifacts/${{ env.ARTIFACT }} artifacts/report.json retention-days: 7 @@ -61,7 +60,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} - test: + test-docs: runs-on: ubuntu-latest needs: build-and-deploy diff --git a/package.json b/package.json index 9432335..80c0926 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kurocado-studio/style-guide", - "version": "1.1.0", + "version": "1.2.1", "description": "Kurocado Studio's engineering style guide", "homepage": "https://github.com/Kurocado-Studio/styleguide", "bugs": { From 2330d8ac6ebe5eb30c26fc9b7499930846606f8c Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Wed, 2 Oct 2024 21:41:54 -0500 Subject: [PATCH 4/4] feat(config): exports commitlint and semantic-release --- package.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 80c0926..c367590 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,6 @@ }, "license": "MPL-2.0", "exports": { - "./gh-actions/base": "./.github/workflows/_base.yml", - "./gh-actions/commitlint": "./.github/workflows/commitlint.yml", - "./gh-actions/deploy_writerside_docs": "./.github/workflows/deploy_writerside_docs.yml", - "./gh-actions/eslint_check": "./.github/workflows/eslint_check.yml", - "./gh-actions/npm_publish": "./.github/workflows/npm_publish.yml", - "./gh-actions/prettier_check": "./.github/workflows/prettier_check.yml", "./commitlint": "./src/commitlint/index.js", "./semantic-release": "./src/semantic-release/index.js", "./eslint/base": "./src/eslint/eslint.base.js", @@ -34,7 +28,14 @@ "./tsconfig/web": "./src/tsconfig/tsconfig.web.json" }, "main": "index.js", - "files": ["src/eslint", "src/prettier", "src/tsconfig"], + "files": [ + "src/.github", + "src/commitlint", + "src/eslint", + "src/prettier", + "src/semantic-release", + "src/tsconfig" + ], "scripts": { "commitlint": "pnpm exec commitlint --edit", "eslint-check": "eslint --max-warnings=0 .",