[next]: ensure user rewrites match to action outputs #6868
Workflow file for this run
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: Lint | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '!*' | |
pull_request: | |
env: | |
TURBO_REMOTE_ONLY: 'true' | |
TURBO_TEAM: 'vercel' | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
NODE_VERSION: '16' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
enforce-changeset: | |
name: Enforce Changeset | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' && github.event.pull_request.title != 'Version Packages' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- run: git fetch origin ${{ github.event.pull_request.head.sha }}:pr-${{ github.event.pull_request.number }} | |
- run: git checkout pr-${{ github.event.pull_request.number }} | |
- name: install pnpm@8.3.1 | |
run: npm i -g pnpm@8.3.1 | |
- run: pnpm install | |
# Enforce a changeset file to be present | |
- run: pnpm exec changeset status --since=main | |
test: | |
name: Lint | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: install pnpm@8.3.1 | |
run: npm i -g pnpm@8.3.1 | |
- run: pnpm install | |
- run: pnpm run lint | |
- run: pnpm run prettier-check | |
- run: pnpm run build | |
- run: pnpm run type-check |