feat: Use peerDependencies to get Hermes version on stable branches #18
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: PR | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, edited] | |
| branches: [ "main" ] | |
| concurrency: | |
| # Ensure single build of a pull request. `main` should not be affected. | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-commit: | |
| name: "Lint PR title" | |
| permissions: {} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| filter: blob:none | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| # We lint the PR title instead of the commit message to avoid script injection attacks. | |
| # Using environment variables prevents potential security vulnerabilities as described in: | |
| # https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#example-of-a-script-injection-attack | |
| - name: Lint PR title | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| echo "$PR_TITLE" | npx @rnx-kit/[email protected] | |
| build-website: | |
| name: "Build the website" | |
| permissions: {} | |
| uses: ./.github/workflows/microsoft-build-website.yml | |