chore(deps): bump typescript from 5.9.3 to 6.0.3 #4183
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
| # Security Notes | |
| # This Workflow runs in the untrusted `pull_request` context and therefore must not rely on any | |
| # repository secrets. It does not comment on the Pull Request itself; instead it uploads a | |
| # `pr-comment` artifact which the trusted `Leave Comment` Workflow posts once this Workflow completes. | |
| # Only selected Actions are allowed within this repository. Please refer to (https://github.com/nodejs/nodejs.org/settings/actions) | |
| # for the full list of available actions. If you want to add a new one, please reach out a maintainer with Admin permissions. | |
| # REVIEWERS, please always double-check security practices before merging a PR that contains Workflow changes!! | |
| # AUTHORS, please only use actions with explicit SHA references, and avoid using `@master` or `@main` references or `@version` tags. | |
| # MERGE QUEUE NOTE: This Workflow does not run on `merge_group` trigger, as this Workflow is not required for Merge Queue's | |
| name: Lighthouse | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - labeled | |
| defaults: | |
| run: | |
| # This ensures that the working directory is the root of the repository | |
| working-directory: ./ | |
| permissions: | |
| contents: read | |
| actions: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| lighthouse-ci: | |
| # We want to skip our lighthouse analysis on Dependabot PRs | |
| if: | | |
| startsWith(github.event.pull_request.head.ref, 'dependabot/') == false && | |
| github.event.label.name == 'github_actions:pull-request' | |
| name: Lighthouse Report | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Capture Vercel Preview | |
| id: deployment | |
| uses: patrickedqvist/wait-for-vercel-preview@d7982701e6fcd3ae073bff929e408e004404d38d # v1.3.3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| max_timeout: 300 # timeout after 5 minutes | |
| check_interval: 10 # check every 10 seconds | |
| - name: Git Checkout | |
| # Only needed for the Lighthouse formatting script; no credentials are persisted. | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Audit Preview URL with Lighthouse | |
| # Conduct the lighthouse audit | |
| id: lighthouse_audit | |
| uses: treosh/lighthouse-ci-action@3e7e23fb74242897f95c0ba9cabad3d0227b9b18 # v12.6.2 | |
| with: | |
| # Defines the settings and assertions to audit | |
| configPath: './.lighthouserc.json' | |
| # These URLS capture critical pages / site functionality. | |
| urls: | | |
| ${{ steps.deployment.outputs.url }}/en | |
| ${{ steps.deployment.outputs.url }}/en/about | |
| ${{ steps.deployment.outputs.url }}/en/about/previous-releases | |
| ${{ steps.deployment.outputs.url }}/en/download | |
| ${{ steps.deployment.outputs.url }}/en/download/archive/current | |
| ${{ steps.deployment.outputs.url }}/en/blog | |
| uploadArtifacts: true # save results as a action artifacts | |
| temporaryPublicStorage: true # upload lighthouse report to the temporary storage | |
| - name: Format Lighthouse Score | |
| # Transform the audit results into a single, friendlier output | |
| id: format_lighthouse_score | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | |
| env: | |
| # using env as input to our script | |
| # see https://github.com/actions/github-script#use-env-as-input | |
| LIGHTHOUSE_RESULT: ${{ steps.lighthouse_audit.outputs.manifest }} | |
| LIGHTHOUSE_LINKS: ${{ steps.lighthouse_audit.outputs.links }} | |
| VERCEL_PREVIEW_URL: ${{ steps.deployment.outputs.url }} | |
| with: | |
| # Run as a separate file so we do not have to inline all of our formatting logic. | |
| # See https://github.com/actions/github-script#run-a-separate-file for more info. | |
| script: | | |
| const { formatLighthouseResults } = await import('${{github.workspace}}/apps/site/scripts/lighthouse/index.mjs') | |
| await formatLighthouseResults({core}) | |
| - name: Prepare Comment | |
| env: | |
| COMMENT: ${{ steps.format_lighthouse_score.outputs.comment }} | |
| run: | | |
| mkdir -p pr-comment | |
| printf '%s' "$COMMENT" > pr-comment/comment.md | |
| printf '%s' 'lighthouse_audit' > pr-comment/tag.txt | |
| - name: Upload Comment | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: pr-comment | |
| path: pr-comment/ |