fix(codegen): remove double indentation for enum inside namespace (#1… #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Crates | |
| permissions: {} | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - crates/oxc/Cargo.toml | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| release: | |
| if: github.repository == 'oxc-project/oxc' | |
| name: Release crates | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # For git tag push | |
| id-token: write # Required for OIDC token exchange | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| token: ${{ secrets.OXC_BOT_PAT }} | |
| fetch-depth: 0 # for changelog | |
| persist-credentials: true | |
| - uses: oxc-project/setup-rust@c8224157c0bf235aabc633e8cd50d344f087a7de # v1.0.12 | |
| with: | |
| cache-key: warm | |
| tools: cargo-release-oxc | |
| - run: cargo ck | |
| - name: Generate changelog | |
| run: | | |
| mkdir -p target | |
| cargo release-oxc changelog --release crates | |
| - uses: rust-lang/crates-io-auth-action@b7e9a28eded4986ec6b1fa40eeee8f8f165559ec # v1.0.3 | |
| id: auth | |
| - name: Run | |
| id: run | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} | |
| run: | | |
| cargo release-oxc publish --release crates | |
| echo "TAG=$(cat ./target/CRATES_VERSION)" >> $GITHUB_OUTPUT | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0 | |
| with: | |
| body_path: ./target/CRATES_CHANGELOG | |
| name: oxc ${{ steps.run.outputs.TAG }} | |
| tag_name: ${{ steps.run.outputs.TAG }} | |
| target_commitish: ${{ github.sha }} | |
| draft: false | |
| make_latest: false # latest is reserved for apps | |
| # Workaround for https://github.com/softprops/action-gh-release/issues/703 | |
| - name: Mark release as not latest | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh release edit ${{ steps.run.outputs.TAG }} --latest=false |