diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7f28f1b..448b02f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,17 +17,8 @@ jobs: with: node-version: latest - - name: Enable Yarn - run: corepack enable yarn - - - name: Cache Dependencies - uses: actions/cache@v3.3.2 - with: - path: .yarn - key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - - name: Install Dependencies - run: yarn install + uses: threeal/yarn-install-action@v1.0.0 - name: Build Package run: yarn build && git diff --exit-code HEAD diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d0f2dcb..b4b988e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,21 +17,12 @@ jobs: with: node-version: latest - - name: Enable Yarn - run: corepack enable yarn + - name: Install Dependencies + uses: threeal/yarn-install-action@v1.0.0 - name: Check Yarn Version run: yarn set version stable && git diff --exit-code HEAD - - name: Cache Dependencies - uses: actions/cache@v3.3.2 - with: - path: .yarn - key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - - - name: Install Dependencies - run: yarn install - - name: Check Format run: yarn format && git diff --exit-code HEAD @@ -50,14 +41,8 @@ jobs: with: node-version: latest - - name: Cache Dependencies - uses: actions/cache@v3.3.2 - with: - path: .yarn - key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - - name: Install Dependencies - run: corepack enable && yarn install + uses: threeal/yarn-install-action@v1.0.0 - name: Test Package run: yarn test