Skip to content

Commit

Permalink
change: replace yarn with npm.
Browse files Browse the repository at this point in the history
  • Loading branch information
cangzhang committed May 29, 2022
1 parent ea7dde5 commit 8f96d2a
Show file tree
Hide file tree
Showing 6 changed files with 51,871 additions and 19,640 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: pwsh
run: |
set NODE_OPTIONS=--openssl-legacy-provider
$sha = (git rev-parse --short HEAD)
npm i -g yarn
yarn set version berry
yarn --silent
$env:SHORT_SHA=$sha; yarn release
npm install
$env:SHORT_SHA=$sha; npm run release
- name: Move artifacts
id: vars
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,13 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.10.0'
node-version: '16'

- name: Build
run: |
set NODE_OPTIONS=--openssl-legacy-provider
$sha = (git rev-parse --short HEAD)
npm i -g yarn
yarn set version berry
yarn install --silent
$env:SHORT_SHA=$sha; yarn build:ci
npm install
$env:SHORT_SHA=$sha; npm run build:ci
- name: Move artifacts
id: vars
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,24 @@ Check https://github.com/cangzhang/champ-r/wiki/FAQ

### Prerequisite

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

### Install dependencies

```console
yarn
npm install
```

### Start

```console
yarn start
npm run start
```

### Build

```console
yarn build:local
npm run build:local
```


Expand Down
Loading

0 comments on commit 8f96d2a

Please sign in to comment.