build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.21.0 to 8.18.1 #457
This file contains 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: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
pull_request_target: | |
types: | |
- labeled | |
- unlabeled | |
jobs: | |
build: | |
if: github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'preview-release') | |
name: Create Preview Release | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
steps: | |
- name: Check out code (push or pull_request) | |
if: github.event_name != 'pull_request_target' | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Check out code (label change) | |
if: github.event_name == 'pull_request_target' | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build cli | |
run: pnpm build --filter=@content-collections/cli | |
- name: Install cli binary | |
run: pnpm install | |
- name: Build | |
run: pnpm build | |
- name: Deploy preview release | |
run: pnpx pkg-pr-new publish './packages/*' | |