internal: Publish beta version (#3575) #10
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: Beta Release | |
| on: | |
| push: | |
| branches: | |
| - beta | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Beta tag (e.g., beta, alpha, rc)' | |
| required: true | |
| default: 'beta' | |
| type: string | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| beta-release: | |
| name: Beta Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: '22' | |
| cache: 'yarn' | |
| - name: Install packages | |
| run: | | |
| corepack enable | |
| yarn install --immutable | |
| - name: Configure Yarn npm authentication | |
| run: | | |
| yarn config set npmAuthToken "${NPM_TOKEN}" | |
| yarn config set npmAlwaysAuth true | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Create Beta Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| version: yarn changeset:version:beta | |
| publish: yarn changeset:publish:beta | |
| commit: "internal: Publish beta version" | |
| title: "Version Packages (Beta)" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |