diff --git a/.github/workflows/pr.yml b/.github/workflows/ci.yml similarity index 74% rename from .github/workflows/pr.yml rename to .github/workflows/ci.yml index aa9f05d..4187eb2 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Pull Request +name: CI on: pull_request: @@ -15,17 +15,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version-file: '.nvmrc' + # pnpm is installed in a later step; this workflow caches the pnpm + # store manually below, so disable setup-node's auto cache (default + # changed to true in v5 and runs before pnpm is on PATH). + package-manager-cache: false - name: Setup pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@v6 with: run_install: false @@ -36,7 +40,7 @@ jobs: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - name: Setup pnpm cache - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1ffdef..8795c29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,23 +19,23 @@ jobs: steps: - name: Generate release token id: generate_token - uses: actions/create-github-app-token@v2 + uses: actions/create-github-app-token@v3 with: app-id: ${{ vars.RELEASE_BOT_APP_ID }} private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 persist-credentials: false token: ${{ steps.generate_token.outputs.token }} - name: Setup pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@v6 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version-file: '.nvmrc' registry-url: 'https://registry.npmjs.org'