ci: stick to pkg-pr-new@0.0.20 & only publish approved pr pkg (#18107)

* ci: add  docs-preview commit & change release pr pkg order

* ci: update

* ci: test comment

* ci: back old code

* ci: stick to pkg-pr-new@0.0.20

* ci: only publish approved pr
This commit is contained in:
sea 2024-09-01 12:01:28 +08:00 committed by GitHub
parent c90ebf8ca4
commit c2c9f90dda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,15 +1,12 @@
name: 'pkg-pr-new'
name: Publish Approved Pull Requests Pkg
on:
push:
branches:
- dev
tags:
- '!**'
pull_request:
branches:
- dev
pull_request_review:
types: [submitted]
jobs:
build:
approved:
if: github.event.review.state == 'APPROVED'
runs-on: ubuntu-latest
steps:
@ -19,7 +16,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 18
cache: 'pnpm'
- name: Setup pnpm
@ -48,4 +45,4 @@ jobs:
- name: Publish
run: |
cd dist/element-plus
pnpx pkg-pr-new publish
pnpx pkg-pr-new@0.0.20 publish