Skip to content

Commit

Permalink
ci: release pr commit is made on the original repository dev (element…
Browse files Browse the repository at this point in the history
…-plus#18219)

* ci: test

* ci: test

* ci: update

* ci: only push release

* ci: update name

* ci: change file name

* ci: update

* ci: update pnpm to 9.5

* ci: delete pnpm version
  • Loading branch information
warmthsea authored Sep 13, 2024
1 parent 1cc0923 commit 28083c2
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Publish Approved Pull Requests Pkg
name: Publish PR Commit Pkg

on:
pull_request_review:
types: [submitted]
push:
branches:
- dev
tags:
- '!**'
pull_request:
branches:
- dev

jobs:
approved:
if: github.event.review.state == 'APPROVED'
build:
runs-on: ubuntu-latest

if: ${{ github.repository == 'element-plus/element-plus' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -21,8 +26,6 @@ jobs:

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8.14.1

- name: Install dependencies
run: pnpm install
Expand All @@ -45,4 +48,4 @@ jobs:
- name: Publish
run: |
cd dist/element-plus
pnpx pkg-pr-new@0.0.20 publish
pnpx pkg-pr-new publish

0 comments on commit 28083c2

Please sign in to comment.