diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0e1f02..3d66c39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,34 +14,24 @@ 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 - - - name: Install - run: pnpm install - - - name: Build type stubs - run: pnpm dev:prepare - - - name: Lint - run: pnpm run lint + cache: pnpm + - run: pnpm install + - run: pnpm dev:prepare + - 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 - - - name: Install - run: pnpm install - - - name: Build type stubs - run: pnpm dev:prepare - - - name: Typecheck - run: pnpm run test:types + cache: pnpm + - run: pnpm install + - run: pnpm dev:prepare + - run: pnpm run test:types diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85ec0fe..c9d60f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,13 +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 }} diff --git a/.npmrc b/.npmrc index cf04042..bf2e764 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1 @@ shamefully-hoist=true -strict-peer-dependencies=false