mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
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:
parent
c90ebf8ca4
commit
c2c9f90dda
21
.github/workflows/pkg-pr-new.yml
vendored
21
.github/workflows/pkg-pr-new.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user