Skip to content

Commit 810494c

Browse files
committed
Migrate from yarn to npm
1 parent 135fa82 commit 810494c

File tree

4 files changed

+1178
-765
lines changed

4 files changed

+1178
-765
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
- uses: actions/setup-node@v2
1515
with:
1616
node-version: 20
17-
cache: yarn
17+
cache: npm
1818

19-
- run: yarn install --immutable
19+
- run: npm ci
2020

21-
- run: yarn validate:schema
21+
- run: npm run validate:schema
2222

23-
- run: yarn generate:json
24-
- name: Verify that `yarn generate:json` did not change outputs (if it did, please re-run it and re-commit!)
23+
- run: npm run generate:json
24+
- name: Verify that `npm run generate:json` did not change outputs (if it did, please re-run it and re-commit!)
2525
run: git diff --exit-code
2626

27-
- run: yarn validate:examples
27+
- run: npm run validate:examples

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ The following software is required to work on the spec:
1010

1111
* Typescript
1212
* Node.JS 20 or above
13-
* Yarn
1413
* Typescript JSON Schema (for generating json schema)
1514
* Hugo (optionally, for serving the documentation)
1615
* Go (optionally, for serving the documentation)
@@ -21,17 +20,17 @@ The following commands install the dependencies, validate the schema and generat
2120

2221
```bash
2322
$ nvm install # install the correct node version
24-
$ yarn install # install dependencies
25-
$ yarn validate:schema # validate the schema
26-
$ yarn validate:examples # validate the examples
27-
$ yarn generate:json # generate the json schema
23+
$ npm install # install dependencies
24+
$ npm run validate:schema # validate the schema
25+
$ npm run validate:examples # validate the examples
26+
$ npm run generate:json # generate the json schema
2827
```
2928

3029
## Serving the documentation
3130
The documentation lives in the `docs` folder. To serve the documentation, run the following commands:
3231

3332
```bash
34-
$ yarn serve:docs # serve the documentation
33+
$ npm run serve:docs # serve the documentation
3534
```
3635

3736
Note that this requires Hugo and Go to be installed.

0 commit comments

Comments
 (0)