mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
c660391f19
Add `if: github.repository == 'oxc-project/oxc'` to jobs in release, codecov, and lint_rules workflows to prevent them from running on fork repositories. **Affected workflows:** - `codecov.yml` - `lint_rules.yml` - `prepare_release_apps.yml` - `prepare_release_crates.yml` (2 jobs) - `release_apps.yml` - `release_crates.yml` - `release_napi_minify.yml` - `release_napi_parser.yml` - `release_napi_transform.yml` - `release_runtime.yml` - `release_types.yml`
27 lines
573 B
YAML
27 lines
573 B
YAML
name: Release NAPI Parser
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- napi/parser/package.json
|
|
- .github/workflows/release_napi_parser.yml
|
|
- .github/workflows/reusable_release_napi.yml
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
release:
|
|
if: github.repository == 'oxc-project/oxc'
|
|
name: Release NAPI Parser
|
|
uses: ./.github/workflows/reusable_release_napi.yml
|
|
with:
|
|
name: parser
|
|
permissions:
|
|
id-token: write # for `pnpm publish --provenance`
|