ci: simplify pr-docs-build & remove macos-build (#7597)

This commit is contained in:
云游君 2022-05-10 00:46:13 +08:00 committed by GitHub
parent 6bae2bffd0
commit 2c15027f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [16.x]
os: [ubuntu-latest, windows-latest]
fail-fast: false
env:
@ -19,26 +20,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.com/
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Cache ~/.pnpm-store
uses: actions/cache@v3
env:
cache-name: cache-pnpm-store
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-preview-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-preview-${{ env.cache-name }}-
${{ runner.os }}-preview-
${{ runner.os }}-
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --frozen-lockfile