Move normalize args and visit into delegate (#3934) #2502
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: | |
| - master | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| cache: 'yarn' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install packages | |
| run: ./scripts/ci-install.sh | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| version: yarn changeset:version | |
| publish: yarn changeset:publish | |
| commit: "internal: Publish new version" | |
| createGithubReleases: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # hasChangesets is 'false' after the Version Packages PR is merged (no | |
| # changeset files remain), which is the same run where publish executes. | |
| # We can't use `published == 'true'` because the custom yarn publish | |
| # command isn't detectable by changesets/action. | |
| - name: Create GitHub Releases | |
| if: steps.changesets.outputs.hasChangesets == 'false' | |
| run: node scripts/create-github-releases.mjs | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |