diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 40b90ec..7abf982 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,25 +4,28 @@ jobs: build: runs-on: ubuntu-latest + env: + YARN_ENABLE_MIRROR: "false" + YARN_ENABLE_GLOBAL_CACHE: "false" + steps: - name: Begin CI... uses: actions/checkout@v2 - - name: Use Node 12 + - name: Use Node 14 uses: actions/setup-node@v1 with: - node-version: 12.x + node-version: 14.x - - name: Use cached node_modules - uses: actions/cache@v2 + - uses: actions/cache@v2 with: - path: node_modules - key: nodeModules-${{ hashFiles('**/yarn.lock') }} + path: .yarn/cache + key: yarn2-${{ hashFiles('yarn.lock') }} restore-keys: | - nodeModules- + yarn2- - name: Install dependencies - run: yarn install --immutable + run: yarn --immutable env: CI: true