diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56880b2..68a8f47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,6 @@ on: jobs: build: - runs-on: ${{ matrix.os }} strategy: @@ -19,20 +18,16 @@ jobs: node-version: [12.x, 14.x, 16.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - # Caching: root project - - name: Get Yarn cache directory - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + cache: "yarn" - name: Use node_modules cache id: node-modules-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node-modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }}