-
Notifications
You must be signed in to change notification settings - Fork 936
38 lines (38 loc) · 1.29 KB
/
preview-release.yml
File metadata and controls
38 lines (38 loc) · 1.29 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
name: Preview Release
on:
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 Repo
uses: actions/checkout@v4
- name: pnpm setup
uses: pnpm/action-setup@f2b2b233b538f500472c7274c7012f57857d8ce0
- name: Install packages
run: pnpm install --frozen-lockfile
- name: Run Build
run: pnpm build
env:
SPAM_ASSASSIN_HOST: ${{ secrets.SPAM_ASSASSIN_HOST }}
SPAM_ASSASSIN_PORT: ${{ secrets.SPAM_ASSASSIN_PORT }}
# Add step to find changed package directories within ./packages
- name: Find changed packages
id: changed_packages
uses: tj-actions/changed-files@212f9a7760ad2b8eb511185b841f3725a62c2ae0
with:
files: packages/**
dir_names: true
dir_names_max_depth: 2
- name: Publish changed packages to pkg.pr.new
if: steps.changed_packages.outputs.all_changed_and_modified_files != ''
run: pnpm dlx pkg-pr-new publish ${{ steps.changed_packages.outputs.all_changed_and_modified_files }}