Skip to content

Pin dependencies

Pin dependencies #508

Workflow file for this run

name: Test and lint
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: ["**"]
permissions: {}
jobs:
check:
name: Test and lint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- name: Node setup
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
cache-dependency-path: package.json
node-version: "24.x"
cache: "npm"
- name: Install and build
run: |
npm i
npm run build
- name: Publish package for testing branch
run:
npx pkg-pr-new publish || echo "Have you set up pkg-pr-new for this
repo?"
- name: Test
run: |
npm run test
npm run typecheck
npm run lint
npm run format:check