update workflows

This commit is contained in:
Kagami Sascha Rosylight 2023-03-16 21:13:21 +01:00
parent d123722616
commit ce5a9630ca
2 changed files with 26 additions and 26 deletions

View file

@ -9,32 +9,28 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3.3.0
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3.6.0
with:
node-version: 16.5.0
node-version: 18.x
cache: 'pnpm'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- run: corepack enable
- name: Install dependencies
run: npm ci
run: pnpm i --frozen-lockfile
- name: Build
run: npm run build
run: pnpm --filter misskey-js build
- name: Check files
run: ls built
run: ls packages/misskey-js/built
- name: API report
run: npm run api-prod
run: pnpm --filter misskey-js api-prod
- name: Show report
if: always()
run: cat temp/misskey-js.api.md
run: cat packages/misskey-js/temp/misskey-js.api.md