name: Typescript
on:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
# Use npm install instead of npm ci to properly handle optional dependencies
# See: https://github.com/npm/cli/issues/4828
- run: rm -rf node_modules package-lock.json
- run: npm install
- name: test pkg
run: npm test
working-directory: ./typescript