From fd8bffd6237041d80b4585815bdf75fa8f45718b Mon Sep 17 00:00:00 2001 From: Barrett Burnworth <77902178+pantheredeye@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:17:32 -0600 Subject: [PATCH] Push up enable corepack Following [this solution](https://github.com/actions/setup-node/issues/480#issuecomment-1915448139) to enable corepack and caching. --- .github/workflows/main.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1781913..77f6480 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,24 +15,23 @@ jobs: node-version: ['22.11.0'] runs-on: ubuntu-24.04 - steps: - name: Checkout Code uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - cache: 'yarn' - + - name: Enable Corepack run: corepack enable + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + cache: 'yarn' + - name: Use Yarn 4.4.0 run: corepack prepare yarn@4.4.0 --activate - name: Install Dependencies - run: yarn install + run: yarn install --immutable - name: Run Linter run: yarn rw lint