Skip to content

Commit 13a8d6b

Browse files
chore(ci): pkg.pr.new monorepo support (#159)
Co-authored-by: Imran Sulemanji <[email protected]>
1 parent 1bf21ff commit 13a8d6b

File tree

2 files changed

+35
-96
lines changed

2 files changed

+35
-96
lines changed

.github/workflows/pkg.pr.new.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Any Commit
2+
on:
3+
push:
4+
tags:
5+
- "!**"
6+
branches:
7+
- "**"
8+
9+
env:
10+
PNPM_CACHE_FOLDER: .pnpm-store
11+
HUSKY: 0 # Bypass husky commit hook for CI
12+
13+
permissions: {}
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.number }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
node-version: [20]
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: ./.github/actions/setup-node
29+
- name: Install dependencies
30+
run: pnpm install
31+
- name: Build
32+
run: pnpm nx run-many --target=build --parallel=5 -p="tag:npm:public"
33+
- run: |
34+
PATHS=$(pnpm list --recursive --depth=0 --json | jq -r '.[] | select(.private == false) | .path' | tr '\n' ' ')
35+
pnpx pkg-pr-new publish $PATHS --compact --pnpm

.github/workflows/pr-preview.yaml

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)