diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 57bd827..aabf07d 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -11,31 +11,17 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Install Node.js 20 + + - name: Pnpm setup + uses: pnpm/action-setup@v2 + with: + version: 8.10 + + - name: Use Node.js 20 uses: actions/setup-node@v3 with: node-version: 20 - - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 8.10.0 - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 86335f1..9f81799 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,31 +21,16 @@ jobs: with: fetch-depth: 0 - - name: Install Node.js + - name: Pnpm setup + uses: pnpm/action-setup@v2 + with: + version: 8.10 + + - name: Use Node.js 20 uses: actions/setup-node@v3 with: node-version: 20 - - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 8.10.0 - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile