adds pkg.pr.new workflow
This commit is contained in:
parent
7b0132377a
commit
374c45fb5d
1 changed files with 32 additions and 0 deletions
32
.github/workflows/pkg.pr.new.yaml
vendored
Normal file
32
.github/workflows/pkg.pr.new.yaml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
name: Publish preview
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
cache: 'pnpm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
|
- name: Publish to pkg.pr.new
|
||||||
|
run: pnpm dlx pkg-pr-new publish --packageManager=pnpm
|
||||||
Loading…
Reference in a new issue