Skip to content

Commit 5b02736

Browse files
committed
fix: github workflows and package
1 parent b9dceeb commit 5b02736

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
node-version: ${{ matrix.node_version }}
2020
cache: "npm"
2121
- run: npm install
22-
- run: npm test:ci
22+
- run: npm run test:ci

docs/CONTRIBUTING.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ We're really glad you're reading this, because we need volunteers to help this p
44

55
## Prerequisites
66

7-
You will need node and yarn installed on your computer to run the code. And git to download it:
7+
You will need node installed on your computer to run the code. And git to download it:
88

99
- [node](https://nodejs.org/en/download/)
10-
- [yarn](https://yarnpkg.com/)
1110
- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
1211

1312
## Download the code
@@ -16,8 +15,8 @@ To download the code, use git:
1615

1716
```bash
1817
git clone https://github.com/tonaljs/tonal
19-
yarn install
20-
yarn build
18+
npm install
19+
npm build
2120
```
2221

2322
## Development
@@ -29,7 +28,7 @@ If you are adding new functionality or fixing a bug, please add a test for it.
2928
**Run test and build the library before submitting a pull request :pray:**
3029

3130
```bash
32-
yarn test:ci
31+
npm test:ci
3332
```
3433

3534
#### How to add a new module
@@ -40,7 +39,7 @@ To create a new module:
4039
- Add a new package.json inside the folder (see any of them as an example)
4140
- Add required dependencies to "dependencies" inside package.json. Ensure correct dependency versions. For example, if your module needs to use `tonal/core` look at core's package.json to see what version to use
4241
- Add your functionality and tests
43-
- Ensure everything works: run `yarn test:ci` at root folder
42+
- Ensure everything works: run `npm test:ci` at root folder
4443
- Create a pull request
4544

4645
## Release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test": "jest --coverage",
1515
"lint": "eslint 'packages/**/*.ts'",
1616
"lint:fix": "eslint 'packages/**/*.ts' --fix",
17-
"test:ci": "npm format && npm lint && npm build && npm test -- --no-cache",
17+
"test:ci": "npm run format && npm run lint && npm run build && npm run test -- --no-cache",
1818
"doc": "npm typedoc"
1919
},
2020
"prettier": {},

0 commit comments

Comments
 (0)