diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6a4bce..cf239fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,9 +47,6 @@ jobs: - name: Install dependencies run: yarn install - - name: Build package - run: npm run build - typecheck: runs-on: ubuntu-latest steps: @@ -61,19 +58,16 @@ jobs: with: node-version: '20' - - name: Cache Dependencies + - name: Cache Yarn Dependencies uses: actions/cache@v3 with: - path: ~/.npm - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + path: ~/.yarn/cache + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-npm- + ${{ runner.os }}-yarn- - name: Install dependencies - run: npm ci - - - name: Build library - run: npm run build + run: yarn install publish: needs: build-library