forked from stackblitz/tutorialkit
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 805 Bytes
/
publish-commit.yaml
File metadata and controls
32 lines (26 loc) · 805 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
# PRs can be published by adding `pkg-pr-new` tag
name: PR Preview Releases
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, labeled]
jobs:
release:
if: github.repository == 'stackblitz/tutorialkit' && (github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'pkg-pr-new'))
runs-on: ubuntu-latest
name: 'Release: pkg.pr.new'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup-and-build
- name: Publish to pkg.pr.new
run: >
pnpm dlx pkg-pr-new publish --compact --pnpm
./packages/astro
./packages/react
./packages/runtime
./packages/theme
./packages/types