Debian Codegraph @

.github/workflows/typescript-build.yml

raw
1 #
2 # Copyright 2023 The Sigstore Authors.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 name: Check Typescript build
17
18 permissions:
19 contents: read
20
21 on:
22 push:
23 branches: [main]
24 pull_request: {}
25
26 jobs:
27 build:
28 name: Build Typescript generated code
29 strategy:
30 matrix:
31 node-version:
32 - 20.x
33 - 22.x
34 - 24.x
35 fail-fast: false
36 runs-on: ubuntu-latest
37
38 defaults:
39 run:
40 working-directory: gen/pb-typescript
41
42 steps:
43 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
44 with:
45 persist-credentials: false
46 - name: Setup node ${{ matrix.node-version }}
47 uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
48 with:
49 node-version: ${{ matrix.node-version }}
50 cache: npm
51 cache-dependency-path: gen/pb-typescript/package-lock.json
52 - name: Build
53 run: |
54 npm ci
55 npm run build