Skip to content

Commit

Permalink
Build and publish library via pkg.pr.new in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-hiller committed Sep 1, 2024
1 parent 27aee2e commit 3dbb249
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:

jobs:
Expand All @@ -15,6 +15,22 @@ jobs:
- name: Setup pnpm
uses: ./.github/actions/pnpm

library_build:
name: Build and publish library
needs: install
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: ./.github/actions/pnpm
- name: Build
run: pnpm build
working-directory: library
- name: Publish
run: pnpx pkg-pr-new publish --compact --comment=update --pnpm
working-directory: library

library_prettier:
name: Run Prettier in library
needs: install
Expand Down

0 comments on commit 3dbb249

Please sign in to comment.