Skip to content

Commit

Permalink
ci: update pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Mar 14, 2024
1 parent 63311ac commit e1e8a2d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 35 deletions.
45 changes: 12 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit e1e8a2d

Please sign in to comment.