Skip to content

Commit

Permalink
chore: add pkg.pr.new for prs (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
typicalninja authored Oct 31, 2024
1 parent 889a97b commit 9bb8f6a
Show file tree
Hide file tree
Showing 4 changed files with 366 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Pull Request

on:
pull_request:
push:
branches:
- '**'
tags:
- '!**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install Workspace dependencies
run: pnpm install --frozen-lockfile

- name: Build packages
run: pnpm run build:packages

- name: Release commit-release
run: pnpm dlx pkg-pr-new publish --pnpm './packages/*' --no-template
1 change: 0 additions & 1 deletion commitlint.config.mjs

This file was deleted.

9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"build": "turbo run build --no-daemon",
"build:docs": "turbo run build --no-daemon --filter=docs",
"build:packages": "turbo run build --no-daemon --filter=\"./packages/**\"",
"dev": "turbo run dev --parallel --no-daemon",
"lint": "biome lint --write",
"format": "biome format --write",
Expand All @@ -19,6 +20,7 @@
"@commitlint/config-conventional": "^19.5.0",
"is-ci": "3.0.1",
"lefthook": "^1.7.22",
"pkg-pr-new": "^0.0.30",
"tsup": "^8.3.0",
"turbo": "^2.1.3",
"typescript": "^5.6.3"
Expand All @@ -27,5 +29,10 @@
"node": ">=14.0.0",
"pnpm": ">=8"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}
Loading

0 comments on commit 9bb8f6a

Please sign in to comment.