-
-
Notifications
You must be signed in to change notification settings - Fork 12
31 lines (23 loc) · 683 Bytes
/
Copy pathpkg-pr.yml
File metadata and controls
31 lines (23 loc) · 683 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
name: Publish Any Commit
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
# Version will be inferred from package.json
- uses: actions/setup-node@v4
with:
node-version: 24
cache: "pnpm"
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build Packages
run: pnpm run build
- name: Publish Preview Release
run: pnpx pkg-pr-new publish --pnpm ./packages/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}