chore(deps): update dependency npm-check-updates to ^19.6.6 #607
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 Quality Checks and Preview | |
| # Runs code quality checks (build, lint, test) on pull requests | |
| # Additionally deploys docs preview to Vercel if docs package changed | |
| permissions: | |
| actions: write | |
| contents: write | |
| checks: read | |
| pull-requests: write | |
| deployments: write | |
| env: | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_DOCS_PROJECT_ID: ${{ secrets.VERCEL_DOCS_PROJECT_ID }} | |
| VERCEL_STORYBOOK_PROJECT_ID: ${{ secrets.VERCEL_STORYBOOK_PROJECT_ID }} | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| concurrency: | |
| group: pr-quality-checks-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| skip-duplicate-check: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
| steps: | |
| - id: skip_check | |
| uses: fkirc/skip-duplicate-actions@v5 | |
| with: | |
| concurrent_skipping: 'outdated_runs' | |
| cancel_others: 'true' | |
| changed-packages: | |
| needs: skip-duplicate-check | |
| if: needs.skip-duplicate-check.outputs.should_skip != 'true' | |
| runs-on: ubuntu-latest | |
| outputs: | |
| package_changed: ${{ steps.determine-changes.outputs.package_changed }} | |
| stories_changed: ${{ steps.determine-changes.outputs.stories_changed }} | |
| requires_changeset: ${{ steps.determine-changes.outputs.requires_changeset }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| # Minimal checkout just to make the action file available | |
| fetch-depth: 1 | |
| - name: Determine which packages changed | |
| id: determine-changes | |
| uses: ./.github/actions/changed-packages | |
| with: | |
| event-name: ${{ github.event_name }} | |
| base-sha: ${{ github.event.pull_request.base.sha }} | |
| fetch-depth: '0' | |
| create-renovate-changeset: | |
| needs: [skip-duplicate-check, changed-packages] | |
| if: | | |
| needs.skip-duplicate-check.outputs.should_skip != 'true' && | |
| github.event.pull_request.user.login == 'renovate[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| # Minimal checkout just to make the action file available | |
| fetch-depth: 1 | |
| - name: Create Dependency Changeset | |
| uses: ./.github/actions/create-dependency-changeset | |
| with: | |
| base-sha: ${{ github.event.pull_request.base.sha }} | |
| pr-branch: ${{ github.event.pull_request.head.ref }} | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: '0' | |
| check-changeset: | |
| needs: [skip-duplicate-check, changed-packages] | |
| if: | | |
| needs.skip-duplicate-check.outputs.should_skip != 'true' && | |
| needs.changed-packages.outputs.requires_changeset == 'true' && | |
| github.event.pull_request.user.login != 'renovate[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Check for changeset | |
| uses: ./.github/actions/check-changeset | |
| with: | |
| base-sha: ${{ github.event.pull_request.base.sha }} | |
| build: | |
| needs: skip-duplicate-check | |
| if: needs.skip-duplicate-check.outputs.should_skip != 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| # Minimal checkout just to make the action file available | |
| fetch-depth: 1 | |
| - name: Build | |
| uses: ./.github/actions/build | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: '0' | |
| lint: | |
| needs: [skip-duplicate-check, build] | |
| if: needs.skip-duplicate-check.outputs.should_skip != 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| # Minimal checkout just to make the action file available | |
| fetch-depth: 1 | |
| - name: Lint | |
| uses: ./.github/actions/lint | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: '0' | |
| test: | |
| needs: [skip-duplicate-check, build] | |
| if: needs.skip-duplicate-check.outputs.should_skip != 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| # Minimal checkout just to make the action file available | |
| fetch-depth: 1 | |
| - name: Test | |
| uses: ./.github/actions/test | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: '0' | |
| deploy-docs-preview: | |
| runs-on: ubuntu-latest | |
| needs: [skip-duplicate-check, changed-packages, build, lint, test] | |
| if: | | |
| needs.skip-duplicate-check.outputs.should_skip != 'true' && | |
| contains(toJson(fromJson(needs.changed-packages.outputs.package_changed).packages), '@o2s/docs') | |
| environment: | |
| name: docs-preview | |
| url: ${{ steps.deploy-docs.outputs.deployment-url }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Prepare Environment | |
| uses: ./.github/actions/setup-env | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Restore build outputs from cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: | | |
| **/dist/** | |
| **/build/** | |
| **/.next/** | |
| **/next-env.d.ts | |
| !**/node_modules/** | |
| key: ${{ runner.os }}-build-${{ github.sha }} | |
| - name: Deploy Docs to Vercel | |
| id: deploy-docs | |
| uses: ./.github/actions/deploy-vercel | |
| timeout-minutes: 20 | |
| with: | |
| vercel-token: ${{ secrets.VERCEL_ACCESS_TOKEN }} | |
| vercel-org-id: ${{ env.VERCEL_ORG_ID }} | |
| vercel-project-id: ${{ env.VERCEL_DOCS_PROJECT_ID }} | |
| environment: preview | |
| build-args: '' | |
| deploy-args: '' | |
| deploy-storybook-preview: | |
| runs-on: ubuntu-latest | |
| needs: [skip-duplicate-check, changed-packages, build, lint, test] | |
| if: | | |
| needs.skip-duplicate-check.outputs.should_skip != 'true' && | |
| needs.changed-packages.outputs.stories_changed == 'true' | |
| environment: | |
| name: storybook-preview | |
| url: ${{ steps.deploy-storybook.outputs.deployment-url }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Prepare Environment | |
| uses: ./.github/actions/setup-env | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Restore build outputs from cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: | | |
| **/dist/** | |
| **/build/** | |
| **/.next/** | |
| **/next-env.d.ts | |
| !**/node_modules/** | |
| key: ${{ runner.os }}-build-${{ github.sha }} | |
| - name: Deploy Storybook to Vercel | |
| id: deploy-storybook | |
| uses: ./.github/actions/deploy-vercel | |
| timeout-minutes: 20 | |
| with: | |
| vercel-token: ${{ secrets.VERCEL_ACCESS_TOKEN }} | |
| vercel-org-id: ${{ env.VERCEL_ORG_ID }} | |
| vercel-project-id: ${{ env.VERCEL_STORYBOOK_PROJECT_ID }} | |
| environment: preview | |
| build-args: '' | |
| deploy-args: '' |