Skip to content

Commit b9b1ac4

Browse files
committed
- switches to npm ci
Signed-off-by: Vincent Biret <[email protected]>
1 parent 87f5bdb commit b9b1ac4

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/convert-examples-to-json.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v2 # checkout repo content
2626

27+
- uses: actions/setup-node@v4 # setup Node.js
28+
with:
29+
node-version: '20.x'
30+
2731
- name: Install dependencies
28-
run: npm i
32+
run: npm ci
2933

3034
- name: convert YAML examples to JSON
3135
run: find examples/v3* -type f -name "*.yaml" | xargs node scripts/yaml2json/yaml2json.js

.github/workflows/respec.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ jobs:
2525
with:
2626
fetch-depth: 0
2727

28+
- uses: actions/setup-node@v4 # setup Node.js
29+
with:
30+
node-version: '20.x'
31+
2832
- name: Install dependencies
29-
run: npm i
33+
run: npm ci
3034

3135
- uses: actions/checkout@v2 # checkout gh-pages branch
3236
with:

.github/workflows/schema-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install dependencies from main
3030
run: |
3131
git checkout remotes/origin/main -- package.json
32-
npm i
32+
npm ci
3333
- name: Run tests
3434
run: npm run test
3535

0 commit comments

Comments
 (0)