-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 850 Bytes
/
typecheck.yml
File metadata and controls
43 lines (34 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Typecheck
on:
workflow_call:
inputs:
ref:
required: true
type: string
defaults:
run:
working-directory: ./
permissions:
contents: read
jobs:
tsc-check:
runs-on: ubuntu-latest
name: Inspect Code
steps:
- name: Harden runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ inputs.ref }}
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version-file: '.nvmrc'
- name: Install Dependencies
run: npm ci --no-progress
- name: Run Typecheck
run: npm run prepack