Skip to content

Commit 9b92bbc

Browse files
committed
change: replace yarn with npm.
1 parent ea7dde5 commit 9b92bbc

File tree

7 files changed

+51860
-19643
lines changed

7 files changed

+51860
-19643
lines changed

.github/workflows/release.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ jobs:
2222
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2323
shell: pwsh
2424
run: |
25-
set NODE_OPTIONS=--openssl-legacy-provider
2625
$sha = (git rev-parse --short HEAD)
27-
npm i -g yarn
28-
yarn set version berry
29-
yarn --silent
30-
$env:SHORT_SHA=$sha; yarn release
26+
npm install
27+
$env:SHORT_SHA=$sha; npm run release
3128
3229
- name: Move artifacts
3330
id: vars

.github/workflows/test.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,13 @@ jobs:
1919
- uses: actions/checkout@v2
2020
- uses: actions/setup-node@v2
2121
with:
22-
node-version: '16.10.0'
22+
node-version: '16'
2323

2424
- name: Build
2525
run: |
26-
set NODE_OPTIONS=--openssl-legacy-provider
2726
$sha = (git rev-parse --short HEAD)
28-
npm i -g yarn
29-
yarn set version berry
30-
yarn install --silent
31-
$env:SHORT_SHA=$sha; yarn build:ci
27+
npm install
28+
$env:SHORT_SHA=$sha; npm run build:ci
3229
3330
- name: Move artifacts
3431
id: vars

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
npm test

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,24 @@ Check https://github.com/cangzhang/champ-r/wiki/FAQ
5959

6060
### Prerequisite
6161

62-
- [Node.js](https://nodejs.org/en/) >= 10
63-
- [yarn](https://classic.yarnpkg.com/lang/en/)
62+
- [Node.js](https://nodejs.org/en/) >= 14
6463

6564
### Install dependencies
6665

6766
```console
68-
yarn
67+
npm install
6968
```
7069

7170
### Start
7271

7372
```console
74-
yarn start
73+
npm run start
7574
```
7675

7776
### Build
7877

7978
```console
80-
yarn build:local
79+
npm run build:local
8180
```
8281

8382

0 commit comments

Comments
 (0)