-
-
Notifications
You must be signed in to change notification settings - Fork 174
45 lines (37 loc) · 971 Bytes
/
pkg.pr.new.yml
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
41
42
43
44
45
name: Publish Pull Request preview
on:
push:
branches: [main]
tags:
- '!**'
pull_request:
env:
NODE_VER: 22.5
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Use Node.js ${{ env.NODE_VER }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
cache: 'pnpm'
- name: Install deps
run: pnpm i
- name: Build and pack
run: pnpm prepack
- name: Publish package preview
run: pnpx pkg-pr-new publish --compact