diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d94a80178..d06ba660a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,32 +31,17 @@ on: # Reference: # https://docs.github.com/en/actions/using-jobs/using-concurrency # https://docs.github.com/en/actions/learn-github-actions/contexts#github-context + concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }} cancel-in-progress: true jobs: check: - name: License Header Check + name: Check runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: korandoru/hawkeye@v4 - build: - name: Build & Typecheck - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - with: - version: 9 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - cache: 'pnpm' - - run: pnpm install --frozen-lockfile - - run: pnpm run typecheck - - run: pnpm run build - # TODO: enable markdownlint & typos diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 430a65a09..4ae587ff3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,13 +27,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - with: - version: 9 - uses: actions/setup-node@v4 with: node-version: 20.x - cache: 'pnpm' + - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 + with: + version: 9 - run: pnpm install --frozen-lockfile - run: pnpm run typecheck - run: pnpm run build