Skip to content

Commit

Permalink
Replace yarn by NPM as a default Package Manager (#63)
Browse files Browse the repository at this point in the history
* 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`).
  • Loading branch information
BjrInt authored Sep 28, 2022
1 parent 1a7197b commit a8c59c6
Show file tree
Hide file tree
Showing 9 changed files with 32,276 additions and 7,168 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
uses: actions/setup-node@v2

- name: Install dependencies
run: yarn install
run: npm install

- name: Build
run: yarn lint
run: npm run lint

build:
runs-on: ubuntu-latest
Expand All @@ -37,10 +37,10 @@ jobs:
uses: actions/setup-node@v2

- name: Install dependencies
run: yarn install
run: npm install

- name: Build
run: yarn build
run: npm run build

tests:
runs-on: ubuntu-latest
Expand All @@ -52,7 +52,7 @@ jobs:
uses: actions/setup-node@v2

- name: Install dependencies
run: yarn install
run: npm install

- name: Build
run: yarn test
run: npm run test
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
create_tag: "true"
commit_pattern: "^Release (\\S+)"
workspace: "."
publish_command: "yarn"
publish_command: "npm"
publish_args: "--non-interactive"
env: # More info about the environment variables in the README
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This project is still under development, please consider this if you are using i

Run the following command:
```shell
yarn add aleph-sdk-ts
npm install aleph-sdk-ts
```

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

- Run the tests manually:
```shell
yarn install
yarn test
npm install
npm run test
```

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

Just run:
```shell
yarn build
npm run build
```


Expand Down
Loading

0 comments on commit a8c59c6

Please sign in to comment.