-
-
Notifications
You must be signed in to change notification settings - Fork 184
39 lines (32 loc) · 960 Bytes
/
Copy pathpkg-pr-new.yml
File metadata and controls
39 lines (32 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Publish Pull requests
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
run_install: false
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
- name: Setup turbo cache
uses: actions/cache@v3
with:
path: node_modules/.cache
key: turbo-${{ runner.os }}-pkg-pr-new-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm turbo build
- run: pnpm dlx pkg-pr-new publish --compact './packages/plugin-*' './packages/core' './packages/tracing-*'