From 943ed3e2098b196c9a27dcaff2bf3d449fbec264 Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:11:32 +0700 Subject: [PATCH 1/7] build: revert to rimraf 5.0.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b767692d..4a132bda 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,6 @@ }, "devDependencies": { "dotenv-cli": "^7.4.2", - "rimraf": "^6.0.1" + "rimraf": "^5.0.7" } } From 34fd4463d64a1dd2e31ad199fb7ff82f1623c9df Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:16:22 +0700 Subject: [PATCH 2/7] Create yarn-install.yml --- .github/workflows/yarn-install.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/yarn-install.yml diff --git a/.github/workflows/yarn-install.yml b/.github/workflows/yarn-install.yml new file mode 100644 index 00000000..d7cf8178 --- /dev/null +++ b/.github/workflows/yarn-install.yml @@ -0,0 +1,24 @@ +name: Yarn Install + +on: + pull_request: + branches: [ "main" ] + +jobs: + YarnInstall: + runs-on: ubuntu-latest + env: + NODE_OPTIONS: --max_old_space_size=14000 + steps: + - uses: actions/checkout@v4.1.7 + with: + persist-credentials: false # Required to make github pages deployment work correctly + + - name: Cache Data # Cache SourceCred Data, invalidating if any of the config changes or the SC version is updated + uses: actions/cache@v4.0.2 + with: + path: '**/cache' + key: SC-${{ runner.os }}-${{ hashFiles('**/config.json', '**/sourcecred.json', '**/yarn.lock') }} + + - name: Install Packages 🔧 + run: yarn --frozen-lockfile From 8376398cef484abefac2506f9c0d384c3e1145a3 Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:18:24 +0700 Subject: [PATCH 3/7] Update yarn-install.yml --- .github/workflows/yarn-install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/yarn-install.yml b/.github/workflows/yarn-install.yml index d7cf8178..c9f064c8 100644 --- a/.github/workflows/yarn-install.yml +++ b/.github/workflows/yarn-install.yml @@ -5,7 +5,7 @@ on: branches: [ "main" ] jobs: - YarnInstall: + InstallPackages: runs-on: ubuntu-latest env: NODE_OPTIONS: --max_old_space_size=14000 From a14fd96eab213c84292d6a5f66c470f45e3c461b Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:19:02 +0700 Subject: [PATCH 4/7] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4a132bda..b767692d 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,6 @@ }, "devDependencies": { "dotenv-cli": "^7.4.2", - "rimraf": "^5.0.7" + "rimraf": "^6.0.1" } } From 0c0783fc310cdd2b6ff1cf725cc863bdd9b6d5ac Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:22:25 +0700 Subject: [PATCH 5/7] Update yarn-install.yml --- .github/workflows/yarn-install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/yarn-install.yml b/.github/workflows/yarn-install.yml index c9f064c8..9ba16122 100644 --- a/.github/workflows/yarn-install.yml +++ b/.github/workflows/yarn-install.yml @@ -13,6 +13,7 @@ jobs: - uses: actions/checkout@v4.1.7 with: persist-credentials: false # Required to make github pages deployment work correctly + node-version: 20.x - name: Cache Data # Cache SourceCred Data, invalidating if any of the config changes or the SC version is updated uses: actions/cache@v4.0.2 From 3663127c77c3d382304804b10ea71dbf0d77dc52 Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:24:45 +0700 Subject: [PATCH 6/7] Update yarn-install.yml --- .github/workflows/yarn-install.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/yarn-install.yml b/.github/workflows/yarn-install.yml index 9ba16122..e59b9045 100644 --- a/.github/workflows/yarn-install.yml +++ b/.github/workflows/yarn-install.yml @@ -11,15 +11,13 @@ jobs: NODE_OPTIONS: --max_old_space_size=14000 steps: - uses: actions/checkout@v4.1.7 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 with: - persist-credentials: false # Required to make github pages deployment work correctly - node-version: 20.x - - - name: Cache Data # Cache SourceCred Data, invalidating if any of the config changes or the SC version is updated - uses: actions/cache@v4.0.2 - with: - path: '**/cache' - key: SC-${{ runner.os }}-${{ hashFiles('**/config.json', '**/sourcecred.json', '**/yarn.lock') }} + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: yarn.lock - name: Install Packages 🔧 run: yarn --frozen-lockfile From 473aa59eb0ce0d710c8b336efa66caa345c82934 Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:26:47 +0700 Subject: [PATCH 7/7] Update yarn-install.yml --- .github/workflows/yarn-install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/yarn-install.yml b/.github/workflows/yarn-install.yml index e59b9045..a277e0c0 100644 --- a/.github/workflows/yarn-install.yml +++ b/.github/workflows/yarn-install.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v4.1.7 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 20.x uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: 20.x cache: 'npm' cache-dependency-path: yarn.lock