-
Notifications
You must be signed in to change notification settings - Fork 76
40 lines (39 loc) · 1.09 KB
/
preview-release.yml
File metadata and controls
40 lines (39 loc) · 1.09 KB
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
40
name: Preview Release
on:
push:
branches:
- canary
- preview-*
pull_request:
permissions:
contents: read
pull-requests: write
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
preview-release:
runs-on: buildjet-4vcpu-ubuntu-2204
permissions:
contents: write
pull-requests: write
container:
image: node:22
steps:
- name: Checkout
uses: actions/checkout@v4
- name: pnpm setup
uses: pnpm/action-setup@v4
- name: Install packages
run: pnpm install --frozen-lockfile
- name: Run Build
run: pnpm build
- name: Find changed files
id: changed_files
if: github.event_name == 'pull_request'
uses: tj-actions/changed-files@d6f020b1d9d7992dcf07f03b14d42832f866b495
with:
files: src/**/*
dir_names: true
dir_names_max_depth: 2
- name: Publish changed packages to pkg.pr.new
if: github.event_name == 'push' || steps.changed_files.outputs.all_changed_and_modified_files != ''
run: pnpm dlx pkg-pr-new publish