From 6e68c74a2300c5d29957342975d6acaa9ccb5e70 Mon Sep 17 00:00:00 2001 From: Himank Dave <93311724+steadyfall@users.noreply.github.com> Date: Thu, 7 Aug 2025 15:27:18 -0400 Subject: [PATCH 1/5] ci: remove linting workflow from running on main branch --- .github/workflows/lint-and-check.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/lint-and-check.yml b/.github/workflows/lint-and-check.yml index 2353337..5d5eb40 100644 --- a/.github/workflows/lint-and-check.yml +++ b/.github/workflows/lint-and-check.yml @@ -3,11 +3,9 @@ name: Lint and Type-checking on: push: branches: - - main - dev pull_request: branches: - - main - dev jobs: From 7fb127ff66d2369c876ef6a16be55a2a2540a4a7 Mon Sep 17 00:00:00 2001 From: Himank Dave <93311724+steadyfall@users.noreply.github.com> Date: Thu, 7 Aug 2025 15:38:26 -0400 Subject: [PATCH 2/5] fix: updated cron schedule to deploy at 4 AM UTC on the 7th of odd-numbered months --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 36b9efc..f7bfc99 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,7 @@ on: tags: - 'v[0-9]+.[0-9]+.[0-9]+' schedule: - - cron: '0 0 * * 1' + - cron: '0 4 7 1-12/2 *' workflow_dispatch: jobs: From c6a8ef6b2b7c5bfb69a0786c00edcd766487876f Mon Sep 17 00:00:00 2001 From: Himank Dave <93311724+steadyfall@users.noreply.github.com> Date: Thu, 7 Aug 2025 15:44:20 -0400 Subject: [PATCH 3/5] chore: added .git-blame-ignore-revs to ignore linting commit --- .git-blame-ignore-revs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..5e4a743 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,4 @@ +# .git-blame-ignore-revs + +# linted entire codebase +746483b338ac1fb2b39207d2160332bb926bfa52 From 79da430719d1b5c5765f43f1b10ff0c3cb942f3f Mon Sep 17 00:00:00 2001 From: Himank Dave <93311724+steadyfall@users.noreply.github.com> Date: Thu, 7 Aug 2025 16:05:50 -0400 Subject: [PATCH 4/5] feat: split deploy workflow into build & deploy jobs with caching --- .github/workflows/deploy.yml | 43 ++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f7bfc99..e5abf24 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,28 +9,57 @@ on: workflow_dispatch: jobs: - build-and-deploy: - runs-on: ubuntu-24.04 + build: + runs-on: ubuntu-latest permissions: - contents: write + contents: read steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 #v4.4.0 + with: + node-version: '22.x' + + - name: Cache node modules + uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 #v4.2.4 with: - node-version: '18' + path: node_modules + key: node_modules-${{hashFiles('package-lock.json')}} + restore-keys: | + node_modules- - name: Install dependencies run: npm ci - name: Build run: npm run build + + - name: Upload build + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2 + with: + name: out + path: ./out + if-no-files-found: error + retention-days: 1 + + deploy: + needs: build + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Download build from previous job + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 #v4.3.0 + with: + name: out + path: ./out - name: Deploy - uses: peaceiris/actions-gh-pages@v4 + uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e #v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./out From fad6efb4cb0a26169b72ca8c8b2a05c8b5a205d4 Mon Sep 17 00:00:00 2001 From: Himank Dave <93311724+steadyfall@users.noreply.github.com> Date: Thu, 7 Aug 2025 16:08:48 -0400 Subject: [PATCH 5/5] chore: upgraded Node to 22.x and added caching in linting workflow --- .github/workflows/lint-and-check.yml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint-and-check.yml b/.github/workflows/lint-and-check.yml index 5d5eb40..94deb3d 100644 --- a/.github/workflows/lint-and-check.yml +++ b/.github/workflows/lint-and-check.yml @@ -15,12 +15,20 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 #v4.4.0 with: - node-version: '18' + node-version: '22.x' + + - name: Cache node modules + uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 #v4.2.4 + with: + path: node_modules + key: node_modules-${{hashFiles('package-lock.json')}} + restore-keys: | + node_modules- - name: Install dependencies run: npm ci @@ -73,12 +81,20 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 #v4.4.0 + with: + node-version: '22.x' + + - name: Cache node modules + uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 #v4.2.4 with: - node-version: '18' + path: node_modules + key: node_modules-${{hashFiles('package-lock.json')}} + restore-keys: | + node_modules- - name: Install dependencies run: npm ci