chore(deps): update actions/checkout action to v6 (#760) #722
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: Preview Release | |
| on: | |
| push: | |
| branches: | |
| - canary | |
| - preview-* | |
| pull_request: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| preview-release: | |
| runs-on: buildjet-4vcpu-ubuntu-2204 | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| container: | |
| image: node:24 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: pnpm setup | |
| uses: pnpm/action-setup@v4 | |
| - name: Install packages | |
| run: pnpm install --frozen-lockfile | |
| - name: Run Build | |
| run: pnpm build | |
| - name: Find changed files | |
| id: changed_files | |
| if: github.event_name == 'pull_request' | |
| uses: tj-actions/changed-files@d6f020b1d9d7992dcf07f03b14d42832f866b495 | |
| with: | |
| files: src/**/* | |
| dir_names: true | |
| dir_names_max_depth: 2 | |
| - name: Publish changed packages to pkg.pr.new | |
| if: github.event_name == 'push' || steps.changed_files.outputs.all_changed_and_modified_files != '' | |
| run: pnpm dlx pkg-pr-new publish |