force inner joins to avoid entities being hidden by deleted related e… #7008
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 | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: "Commit SHA or ref to release from (defaults to the triggering branch tip)" | |
| required: false | |
| type: string | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| actions: write # required to createWorkflowDispatch the draft-release workflow | |
| jobs: | |
| release: | |
| name: Version packages PR | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.event.inputs.ref || github.sha }} | |
| - name: Setup Node.js 24 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Ensure npm 11.5.1+ for OIDC | |
| run: npm install -g npm@11.5.1 | |
| - name: Install Dependencies | |
| run: yarn | |
| - name: Build packages | |
| run: yarn build | |
| - name: Create Release Pull Request or Publish packages | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| version: yarn version | |
| commit: "Chore: Release" | |
| title: "Chore: Release" | |
| createGithubReleases: false | |
| publish: yarn changeset publish | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Trigger draft release generation | |
| if: steps.changesets.outputs.published == 'true' | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const packages = JSON.parse('${{ steps.changesets.outputs.publishedPackages }}') | |
| const version = packages[0]?.version ?? '' | |
| await github.rest.actions.createWorkflowDispatch({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| workflow_id: 'draft-release.yml', | |
| ref: 'develop', | |
| inputs: { | |
| version | |
| } | |
| }) |