forked from open-telemetry/opentelemetry.io
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (29 loc) · 987 Bytes
/
check-registry.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: Registry Validation
on:
merge_group:
pull_request:
# Make sure this only runs when registry entries are touched.
paths:
- 'data/registry/**'
jobs:
registry-validation:
name: REGISTRY validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create and use reduced-dependencies package.json
run: |
mkdir -p tmp
jq '.devDependencies |= with_entries(
select(.key | test("gulp|markdown|through|require|yargs|js-yaml|ajv|ajv-formats|ajv-errors"))
)
| del(.dependencies, .optionalDependencies)' \
package.json > tmp/package-ci.json
cp tmp/package-ci.json package.json
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: tmp/package-ci.json
- run: npm install --ignore-scripts --omit=optional
- run: npm run check:registry