From 5035c106fb2d906bfd2940fbe406edd42f634f25 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Tue, 13 Aug 2024 18:12:19 +0200 Subject: [PATCH] Bump GitHub actions to latest version (#14182) This PR bumps the versions of common GitHub workflows to the latest version. --- .github/workflows/ci.yml | 19 +++++-------------- .github/workflows/release.yml | 31 +++++++++++++------------------ 2 files changed, 18 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 294ab8af3..dcce7418d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,20 +20,18 @@ jobs: timeout-minutes: 15 steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v3 - with: - version: ^9.5.0 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' # Cargo already skips downloading dependencies if they already exist - name: Cache cargo - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/bin/ @@ -45,7 +43,7 @@ jobs: # Cache the `oxide` Rust build - name: Cache oxide build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ./target/ @@ -76,10 +74,3 @@ jobs: - name: Run Playwright tests run: npm run test:ui - - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report - path: packages/tailwindcss/playwright-report/ - retention-days: 30 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc3f2ae21..12022c737 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,6 @@ permissions: env: APP_NAME: tailwindcss-oxide NODE_VERSION: 20 - PNPM_VERSION: ^9.5.0 OXIDE_LOCATION: ./crates/node jobs: @@ -75,20 +74,18 @@ jobs: container: ${{ matrix.container }} timeout-minutes: 15 steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v3 - with: - version: ${{ env.PNPM_VERSION }} + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} cache: 'pnpm' # Cargo already skips downloading dependencies if they already exist - name: Cache cargo - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/bin/ @@ -100,7 +97,7 @@ jobs: # Cache the `oxide` Rust build - name: Cache oxide build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ./oxide/target/ @@ -110,7 +107,7 @@ jobs: key: ${{ runner.os }}-${{ matrix.target }}-oxide-${{ hashFiles('./crates/**/*') }} - name: Install Node.JS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} @@ -136,7 +133,7 @@ jobs: run: ${{ matrix.strip }} ${{ env.OXIDE_LOCATION }}/*.node - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bindings-${{ matrix.target }} path: ${{ env.OXIDE_LOCATION }}/*.node @@ -155,13 +152,11 @@ jobs: - build steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v3 - with: - version: ${{ env.PNPM_VERSION }} + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} cache: 'pnpm' @@ -169,7 +164,7 @@ jobs: # Cargo already skips downloading dependencies if they already exist - name: Cache cargo - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/bin/ @@ -181,7 +176,7 @@ jobs: # Cache the `oxide` Rust build - name: Cache oxide build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ./oxide/target/ @@ -197,7 +192,7 @@ jobs: run: pnpm run build - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: ${{ env.OXIDE_LOCATION }}