diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index cf43ffe..0cf0635 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -8,11 +8,17 @@ jobs: name: Prepare runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v4 with: - node-version-file: '.nvmrc' + node-version: 'lts/*' + - name: Install Yarn + run: corepack enable + - uses: actions/checkout@v4 + - name: Use Node.js and install dependencies + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' cache: 'yarn' - name: Install Yarn dependencies run: yarn --immutable @@ -23,11 +29,17 @@ jobs: needs: - prepare steps: + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - name: Install Yarn + run: corepack enable - uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v4 with: - node-version-file: '.nvmrc' + node-version: 'lts/*' cache: 'yarn' - run: yarn --immutable --immutable-cache - run: yarn build @@ -45,11 +57,17 @@ jobs: needs: - prepare steps: + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - name: Install Yarn + run: corepack enable - uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v4 with: - node-version-file: '.nvmrc' + node-version: 'lts/*' cache: 'yarn' - run: yarn --immutable --immutable-cache - run: yarn lint @@ -76,6 +94,12 @@ jobs: matrix: node-version: [18.x, 20.x] steps: + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: Install Yarn + run: corepack enable - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 @@ -101,6 +125,12 @@ jobs: matrix: node-version: [18.x, 20.x] steps: + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: Install Yarn + run: corepack enable - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4