Skip to content

Commit

Permalink
ci: simplify pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Mar 13, 2024
1 parent a5c9b7b commit 4c07802
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 23 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
shamefully-hoist=true
strict-peer-dependencies=false

0 comments on commit 4c07802

Please sign in to comment.