mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
6f22859717
## Summary - update `oxc-project/setup-node` from v1.4.0 to v1.4.1 across all workflows - pick up `pnpm/action-setup` v6.0.10, whose newer bootstrap fixes broken `@pnpm/exe` shims during package-manager self-updates The setup action fix was released after oxc-project/setup-node#34.
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
name: Release oxc-codegen
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- packages/codegen/package.json
|
|
- .github/workflows/release_codegen.yml
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
if: github.repository == 'oxc-project/oxc'
|
|
name: Check version
|
|
runs-on: ubuntu-slim
|
|
outputs:
|
|
version: ${{ steps.check.outputs.version }}
|
|
version_changed: ${{ steps.check.outputs.version_changed }}
|
|
steps:
|
|
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
|
|
- uses: ./.github/actions/check-version
|
|
id: check
|
|
with:
|
|
file-name: packages/codegen/package.json
|
|
file-url: https://unpkg.com/oxc-codegen/package.json
|
|
|
|
build:
|
|
needs: check
|
|
if: needs.check.outputs.version_changed == 'true'
|
|
name: Release oxc-codegen
|
|
runs-on: ubuntu-slim
|
|
permissions:
|
|
id-token: write # for `pnpm publish --provenance`
|
|
steps:
|
|
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
|
|
|
|
- uses: oxc-project/setup-node@f46a72f95efdc55273fcd042d61c84e723b2892c # v1.4.1
|
|
|
|
- name: Build
|
|
run: pnpm --filter oxc-codegen build
|
|
|
|
# Trusted publishing is configured, publish token is not required.
|
|
- name: Trusted Publish
|
|
working-directory: packages/codegen
|
|
run: pnpm publish --provenance --access public --no-git-checks
|