diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3cc6c25b..3a78e0c5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,31 +22,18 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Node v16 - uses: actions/setup-node@v4 - with: - node-version: 16.x - - - uses: pnpm/action-setup@v2 - name: Install pnpm + - name: Install pnpm + uses: pnpm/action-setup@v4 id: pnpm-install with: version: 9 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 + - name: Install Node v16 + uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + node-version: 16.x + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 80f2cff2..a13eaf52 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,31 +23,18 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Node v16 - uses: actions/setup-node@v4 - with: - node-version: 16.x - - - uses: pnpm/action-setup@v2 - name: Install pnpm + - name: Install pnpm + uses: pnpm/action-setup@v4 id: pnpm-install with: version: 9 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 + - name: Install Node v16 + uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + node-version: 16.x + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e96f2ef4..7bfe1d6a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,32 +77,18 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Node v16 - uses: actions/setup-node@v4 - with: - node-version: 16.x - registry-url: 'https://registry.npmjs.org' - - - uses: pnpm/action-setup@v2 - name: Install pnpm + - name: Install pnpm + uses: pnpm/action-setup@v4 id: pnpm-install with: version: 9 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 + - name: Install Node v16 + uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + node-version: 16.x + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab23c3f8..afe62673 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,31 +23,18 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Node v16 - uses: actions/setup-node@v4 - with: - node-version: 16.x - - - uses: pnpm/action-setup@v2 - name: Install pnpm + - name: Install pnpm + uses: pnpm/action-setup@v4 id: pnpm-install with: version: 9 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 + - name: Install Node v16 + uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + node-version: 16.x + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile