From e1e8a2d3102ca21810f7a06577738317319a1052 Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Thu, 14 Mar 2024 08:02:13 +0100 Subject: [PATCH] ci: update pipelines --- .github/workflows/ci.yml | 45 ++++++++++------------------------- .github/workflows/release.yml | 5 ++-- 2 files changed, 15 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff544e5..bd21c80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,56 +14,35 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: corepack enable + - uses: pnpm/action-setup@v3 - uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm - - - name: Install - run: pnpm install - - - name: Lint - run: pnpm run lint + - run: pnpm install + - run: pnpm run lint typecheck: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: corepack enable + - uses: pnpm/action-setup@v3 - uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm - - - name: Install - run: pnpm install - - - name: Build - run: pnpm --filter=./packages/unlazy run build - - - name: Typecheck - run: pnpm run test:types + - run: pnpm install + - run: pnpm --filter=./packages/unlazy run build + - run: pnpm run test:types test: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - node: [18] - os: [ubuntu-latest] - fail-fast: false - + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: corepack enable + - uses: pnpm/action-setup@v3 - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} + node-version: 20 cache: pnpm - - - name: Install - run: pnpm install - - - name: Test - run: pnpm run test + - run: pnpm install + - run: pnpm run test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7736031..02eed87 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,14 +15,15 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - run: corepack enable + - uses: pnpm/action-setup@v3 - uses: actions/setup-node@v4 with: node-version: 20 registry-url: https://registry.npmjs.org/ cache: pnpm - - run: npx changelogithub + - name: Publish changelog + run: npx changelogithub env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}