Skip to content

Commit a8c59c6

Browse files
authored
Replace yarn by NPM as a default Package Manager (#63)
* chore: replace yarn by NPM as a default PM Yarn does not support script that would be useful for the lib development (such as `postinstall` and `prepublishOnly`).
1 parent 1a7197b commit a8c59c6

File tree

9 files changed

+32276
-7168
lines changed

9 files changed

+32276
-7168
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
uses: actions/setup-node@v2
2323

2424
- name: Install dependencies
25-
run: yarn install
25+
run: npm install
2626

2727
- name: Build
28-
run: yarn lint
28+
run: npm run lint
2929

3030
build:
3131
runs-on: ubuntu-latest
@@ -37,10 +37,10 @@ jobs:
3737
uses: actions/setup-node@v2
3838

3939
- name: Install dependencies
40-
run: yarn install
40+
run: npm install
4141

4242
- name: Build
43-
run: yarn build
43+
run: npm run build
4444

4545
tests:
4646
runs-on: ubuntu-latest
@@ -52,7 +52,7 @@ jobs:
5252
uses: actions/setup-node@v2
5353

5454
- name: Install dependencies
55-
run: yarn install
55+
run: npm install
5656

5757
- name: Build
58-
run: yarn test
58+
run: npm run test

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
create_tag: "true"
1919
commit_pattern: "^Release (\\S+)"
2020
workspace: "."
21-
publish_command: "yarn"
21+
publish_command: "npm"
2222
publish_args: "--non-interactive"
2323
env: # More info about the environment variables in the README
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This project is still under development, please consider this if you are using i
1717

1818
Run the following command:
1919
```shell
20-
yarn add aleph-sdk-ts
20+
npm install aleph-sdk-ts
2121
```
2222

2323
## Play with this repository
@@ -31,8 +31,8 @@ git clone https://github.com/aleph-im/aleph-sdk-ts
3131

3232
- Run the tests manually:
3333
```shell
34-
yarn install
35-
yarn test
34+
npm install
35+
npm run test
3636
```
3737

3838
- Or use [act](https://github.com/nektos/act):
@@ -44,7 +44,7 @@ act
4444

4545
Just run:
4646
```shell
47-
yarn build
47+
npm run build
4848
```
4949

5050

0 commit comments

Comments
 (0)