Skip to content

Commit

Permalink
test: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Sep 3, 2024
1 parent b82382f commit 86be591
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Publish npm packages
on:
push:
## pull_request:
# types: [closed]
pull_request:
types: [closed]

jobs:
publish:
runs-on: ubuntu-latest
# 当具有 release 标签的 PR 被合并时,自动发布包版本
if: contains(github.event.pull_request.labels.*.name, 'release')
# && github.event.pull_request.merged == true
if: contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.merged == true

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 86be591

Please sign in to comment.