Skip to content

Commit 0a68467

Browse files
authoredJul 5, 2024··
ci: Add preview workflow (#113)
* ci: Add preview workflow * Add approved conditional
1 parent 3a6839b commit 0a68467

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
 

‎.github/workflows/preview.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: preview
2+
3+
on:
4+
pull_request_review:
5+
types: [submitted]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
9+
cancel-in-progress: true
10+
11+
env:
12+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
13+
14+
jobs:
15+
preview:
16+
name: Preview
17+
if: github.event.review.state == 'APPROVED'
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- name: Setup Tools
25+
uses: tanstack/config/.github/setup@main
26+
- name: Publish Previews
27+
run: pnpx pkg-pr-new publish --no-template --compact ./packages/*

0 commit comments

Comments
 (0)
Please sign in to comment.