test(ui-checkbox): use the vitest-browser API in the toggle variant t… #205
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 to npm (OIDC Entry Point) | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| inputs: | |
| release_type: | |
| description: 'Type of release to perform' | |
| required: true | |
| type: choice | |
| options: | |
| - manual | |
| - pr-snapshot | |
| default: 'manual' | |
| custom_version: | |
| description: 'Optional: exact semver prerelease version to publish (pr-snapshot only). Overrides the auto-computed snapshot version. Example: 11.7.3-SECURITY.0' | |
| required: false | |
| type: string | |
| default: '' | |
| dist_tag: | |
| description: 'Optional: npm dist-tag override (pr-snapshot only). Required when custom_version is set. Cannot be "latest".' | |
| required: false | |
| type: string | |
| default: '' | |
| permissions: | |
| id-token: write # Required for OIDC token generation | |
| contents: write # Required for git operations (tagging) | |
| jobs: | |
| # Automatic production release on push to master | |
| auto-release: | |
| if: github.event_name == 'push' | |
| uses: ./.github/workflows/_release-reusable.yml | |
| permissions: | |
| id-token: write | |
| contents: write | |
| secrets: inherit | |
| # Manual release (on-demand) | |
| manual-release: | |
| if: github.event_name == 'workflow_dispatch' && inputs.release_type == 'manual' | |
| uses: ./.github/workflows/_manual-release-reusable.yml | |
| permissions: | |
| id-token: write | |
| contents: write | |
| secrets: inherit | |
| # PR snapshot release. Optionally accepts custom_version + dist_tag to mirror | |
| # a previously-published private security release onto the public registry | |
| # under a non-latest dist-tag. | |
| pr-release: | |
| if: github.event_name == 'workflow_dispatch' && inputs.release_type == 'pr-snapshot' | |
| uses: ./.github/workflows/_pr-release-reusable.yml | |
| with: | |
| custom_version: ${{ inputs.custom_version }} | |
| dist_tag: ${{ inputs.dist_tag }} | |
| permissions: | |
| id-token: write | |
| contents: write | |
| secrets: inherit |