mirror of
https://github.com/layui/layui.git
synced 2026-02-09 02:09:18 +08:00
24 lines
468 B
YAML
24 lines
468 B
YAML
name: Publish Pull Request Preview
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 24
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- run: npx pkg-pr-new publish --template './tests/visual/template/pr-preview'
|