diff --git a/.github/workflows/build-listing.yml b/.github/workflows/build-listing.yml index 62621857..a2aa487e 100644 --- a/.github/workflows/build-listing.yml +++ b/.github/workflows/build-listing.yml @@ -47,6 +47,21 @@ jobs: repository: vrchat-community/package-list-action path: ${{ env.pathToCi }} clean: false + - name: Pre-prepare the Node.js environment + uses: actions/setup-node@v4 + with: + node-version-file: .node-version + - name: Enable the corepack because of the Yarn berry + run: corepack enable + - name: Post-prepare the Node.js environment + uses: actions/setup-node@v4 + with: + cache: ${{ !env.ACT && 'yarn' || '' }} + node-version-file: .node-version + - env: + HUSKY: 0 + name: Install the dependencies + run: corepack up - name: Load cached data from previous runs uses: actions/cache@v4 with: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 11757c1e..23e7c8b5 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -17,29 +17,25 @@ jobs: git config --global core.eol lf - name: Stages the pushed branch uses: actions/checkout@v4 - - name: Pre-prepare the Node.js version ${{ matrix.node-version }} environment + - name: Pre-prepare the Node.js environment uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: .node-version - name: Enable the corepack because of the Yarn berry run: corepack enable - - name: Post-prepare the Node.js version ${{ matrix.node-version }} environment + - name: Post-prepare the Node.js environment uses: actions/setup-node@v4 with: cache: ${{ !env.ACT && 'yarn' || '' }} - node-version: ${{ matrix.node-version }} + node-version-file: .node-version - env: HUSKY: 0 name: Install the dependencies - run: yarn install --inline-builds + run: corepack up - name: Run the tests run: yarn run test strategy: matrix: - node-version: - - 18.x - - 20.x - - 21.x platform: - os: ubuntu-latest shell: bash