From a23d73448e3bb65179879f18fc5447a6e1fd31d6 Mon Sep 17 00:00:00 2001 From: Rangga Fajar Oktariansyah <86386385+FajarKim@users.noreply.github.com> Date: Fri, 9 Aug 2024 23:22:45 +0700 Subject: [PATCH] ci: fixed code --- .github/workflows/auto-build-package.yml | 7 +------ .github/workflows/test.yml | 8 +------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/auto-build-package.yml b/.github/workflows/auto-build-package.yml index 388ea2f..0849d2c 100644 --- a/.github/workflows/auto-build-package.yml +++ b/.github/workflows/auto-build-package.yml @@ -30,11 +30,6 @@ permissions: jobs: update-package: runs-on: ubuntu-latest - name: Auto build deps - strategy: - matrix: - node-version: [22.x] - if: github.repository == 'BarudakRosul/translate' steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 @@ -42,7 +37,7 @@ jobs: - name: Setup Node uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: ${{ matrix.node-version }} + node-version: "22.x" cache: npm # Fix the unsafe repo error which was introduced by the CVE-2022-24765 git patches. diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 40deec3..e91fe00 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,20 +11,14 @@ permissions: read-all jobs: test: - name: Perform check runs-on: ubuntu-latest - strategy: - matrix: - node-version: [22.x] - if: github.repository == 'BarudakRosul/translate' - steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Setup Node uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: ${{ matrix.node-version }} + node-version: "22.x" cache: npm - name: Install package