mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 04:38:54 +00:00
ci: trigger release_cli / release_napi only when package.json changes
This commit is contained in:
parent
cecd743848
commit
97189c4e4c
2 changed files with 14 additions and 8 deletions
12
.github/workflows/release_cli.yml
vendored
12
.github/workflows/release_cli.yml
vendored
|
|
@ -1,14 +1,16 @@
|
|||
# Code copied from [rome](https://github.com/rome/tools/blob/main/.github/workflows/release_cli.yml)
|
||||
|
||||
name: Release CLI
|
||||
|
||||
# When main is pushed and npm/oxc/package.json has been changed,
|
||||
# trigger the jobs after the ci workflow has been passed.
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [ci]
|
||||
types: [completed]
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- npm/oxc/package.json
|
||||
workflow_run:
|
||||
workflows: [ci]
|
||||
types: [completed]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
|
|
|||
10
.github/workflows/release_napi.yml
vendored
10
.github/workflows/release_napi.yml
vendored
|
|
@ -1,12 +1,16 @@
|
|||
name: Release NAPI
|
||||
|
||||
# When main is pushed and npm/napi/package.json has been changed,
|
||||
# trigger the jobs after the ci workflow has been passed.
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [ci]
|
||||
types: [completed]
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- npm/napi/package.json
|
||||
workflow_run:
|
||||
workflows: [ci]
|
||||
types: [completed]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue