diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aae727f..989aa67 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,11 +15,20 @@ jobs: node-version: '18' check-latest: true + - name: Cache npm dependencies + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install dependencies run: npm ci - name: Check if release is required run: ls .changeset/*.md > /dev/null 2>&1 || exit 1 + continue-on-error: true - name: If there is no need to release if: ${{ failure() }}