forked from mdn/browser-compat-data
-
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 936 Bytes
/
add-push-artifacts.yml
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
name: Add artifacts on push
on:
push:
permissions:
contents: read
jobs:
test:
name: Enumerate and diff features
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # get the full repository checkout, not just the inciting commit
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: node --loader=ts-node/esm --no-warnings=ExperimentalWarning ./scripts/enumerate-features.ts features.json
- run: node --loader=ts-node/esm --no-warnings=ExperimentalWarning ./scripts/diff-features.ts --no-github --format=json > features.diff.json
- uses: actions/upload-artifact@v4
with:
name: enumerate-features
path: features.json
- uses: actions/upload-artifact@v4
with:
name: diff-features
path: features.diff.json