-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 771 Bytes
/
ci.yml
File metadata and controls
42 lines (32 loc) · 771 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
jobs:
build-lib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci --ignore-scripts
- run: npm run typecheck
- run: npm run build:lib
- name: Verify dist artifacts
run: |
test -f dist/virtual-keyboard.js
test -f dist/virtual-keyboard.d.ts
- name: Smoke test npm pack
run: npm pack --dry-run
- uses: actions/upload-artifact@v7
with:
name: dist
path: dist
retention-days: 7