kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
fix: turbo CI
rodzic
9f5b659e5a
commit
6fb641081a
|
@ -19,33 +19,23 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v3
|
uses: pnpm/action-setup@v4
|
||||||
id: pnpm-install
|
|
||||||
with:
|
with:
|
||||||
version: 9.7.0
|
version: 9.7.0
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
- name: Install Node.js
|
||||||
shell: bash
|
uses: actions/setup-node@v4
|
||||||
run: |
|
|
||||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Setup pnpm cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
with:
|
||||||
path: ${{ env.STORE_PATH }}
|
node-version: ${{ matrix.node-version }}
|
||||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
cache: 'pnpm'
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pnpm-store-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile --strict-peer-dependencies
|
||||||
|
|
||||||
|
- name: Run build
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
- name: Run test
|
- name: Run test
|
||||||
run: pnpm run test
|
run: pnpm test
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
"release:build": "run-s build",
|
"release:build": "run-s build",
|
||||||
"release:version": "changeset version",
|
"release:version": "changeset version",
|
||||||
"release:publish": "changeset publish",
|
"release:publish": "changeset publish",
|
||||||
|
"pretest": "run-s build",
|
||||||
"precommit": "lint-staged",
|
"precommit": "lint-staged",
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
"prepare": "husky"
|
"prepare": "husky"
|
||||||
|
|
|
@ -12,13 +12,7 @@
|
||||||
"dependsOn": ["^clean"]
|
"dependsOn": ["^clean"]
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"dependsOn": [
|
"dependsOn": ["test:format", "test:lint", "test:typecheck", "test:unit"]
|
||||||
"build",
|
|
||||||
"test:format",
|
|
||||||
"test:lint",
|
|
||||||
"test:typecheck",
|
|
||||||
"test:unit"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"test:lint": {
|
"test:lint": {
|
||||||
"dependsOn": ["^test:lint"],
|
"dependsOn": ["^test:lint"],
|
||||||
|
|
Ładowanie…
Reference in New Issue