Use pnpm workspace instead of lerna (#1032)

* build: Use pnpm workspace instead of lerna
This commit is contained in:
Hu Song
2022-09-15 12:51:23 +08:00
committed by GitHub
parent 3cca4ab27d
commit 343e067ec8
16 changed files with 70 additions and 51 deletions

View File

@@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
node-version: [15.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v2
@@ -17,9 +17,32 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- run: npm run ci
- run: npm install codecov
- run: pnpm install codecov -w
- name: Upload coverage to Codecov
run: ./node_modules/.bin/codecov
- run: curl -s https://codecov.io/bash