mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +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
|
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:
|
on:
|
||||||
workflow_run:
|
push:
|
||||||
workflows: [ci]
|
|
||||||
types: [completed]
|
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- npm/oxc/package.json
|
- npm/oxc/package.json
|
||||||
|
workflow_run:
|
||||||
|
workflows: [ci]
|
||||||
|
types: [completed]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
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
|
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:
|
on:
|
||||||
workflow_run:
|
push:
|
||||||
workflows: [ci]
|
|
||||||
types: [completed]
|
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- npm/napi/package.json
|
- npm/napi/package.json
|
||||||
|
workflow_run:
|
||||||
|
workflows: [ci]
|
||||||
|
types: [completed]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue