Skip to content

ci: add first-party CLA action (replaces archived contributor-assistant) #4

ci: add first-party CLA action (replaces archived contributor-assistant)

ci: add first-party CLA action (replaces archived contributor-assistant) #4

Workflow file for this run

name: "CLA action CI"
on:
pull_request:
paths:
- '.github/actions/cla/**'
- '.github/workflows/action-ci.yml'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .github/actions/cla
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '24'
cache: npm
cache-dependency-path: .github/actions/cla/package-lock.json
- run: npm ci
- run: npm test
- name: dist freshness
run: |
npm run build
# porcelain catches both modified tracked files AND new untracked files under dist/
if [ -n "$(git status --porcelain dist/)" ]; then
git status --porcelain dist/
echo "dist/ is stale — run 'npm run build' and commit the result" >&2
exit 1
fi