Skip to content

Update GitHub Actions workflow to add permissions for OIDC and releas… #29

Update GitHub Actions workflow to add permissions for OIDC and releas…

Update GitHub Actions workflow to add permissions for OIDC and releas… #29

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build (for type declarations)
run: pnpm build
- name: Typecheck
run: pnpm typecheck
- name: Test
run: pnpm test