media: Tracks health of webrtc api #1858
Workflow file for this run
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: Exit Prerelease Mode | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| exit_prerelease: | |
| name: Changesets Exit Prerelease | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| # Fetch entire git history so Changesets can generate changelogs | |
| # with the correct commits | |
| fetch-depth: 0 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: "pnpm" | |
| cache-dependency-path: | | |
| pnpm-lock.yaml | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| # Check if pre.json file exists. The rest of the steps will only run if this file exists | |
| - name: Check for pre.json file existence | |
| id: check_files | |
| uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 | |
| with: | |
| files: ".changeset/pre.json" | |
| # Exit prerelease mode | |
| - name: Exit prerelease mode | |
| if: steps.check_files.outputs.files_exists == 'true' | |
| run: pnpm changeset pre exit | |
| - uses: stefanzweifel/git-auto-commit-action@v5 | |
| if: steps.check_files.outputs.files_exists == 'true' | |
| with: | |
| commit_message: Exit prerelease mode | |
| # Commit these changes to the branch workflow is running against | |
| branch: ${{ github.event.pull_request.head.ref }} |