fix: type check

fix: ci

fix: ci

fix: ci
This commit is contained in:
vben
2024-06-16 21:17:39 +08:00
parent 0085429ef4
commit 54b35deeab
135 changed files with 393 additions and 318 deletions

View File

@@ -50,6 +50,6 @@ jobs:
with:
version: pnpm run version
commit: "chore: bump versions"
title: "chore: bump versions [skip ci]"
title: "chore: bump versions"
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

View File

@@ -36,6 +36,8 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
@@ -43,8 +45,21 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Find pnpm store path
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile
# - name: Check Git version
# run: git --version
@@ -97,12 +112,29 @@ jobs:
name: Check
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
# - uses: ./.github/actions/ci-setup
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
# - name: Typecheck
# run: pnpm check:type
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Typecheck
run: pnpm check:type
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions
- name: Check workflow files