Skip to content

chore: migrate release workflows to npm Trusted Publishers with unified workflow #20

chore: migrate release workflows to npm Trusted Publishers with unified workflow

chore: migrate release workflows to npm Trusted Publishers with unified workflow #20

Workflow file for this run

name: PR Check
on:
pull_request:
branches: [main]
jobs:
changeset-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Check for changeset
run: |
if git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q "^lexicons/\|^types/\|^package.json"; then
if git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q "^\.changeset/.*\.md$"; then
echo "Changeset found"
else
echo "::warning::No changeset found. Run 'npm run changeset' if this PR includes user-facing changes."
fi
else
echo "No package changes detected"
fi