Skip to content

Commit

Permalink
rm explcitiy cache (sendaifun#141)
Browse files Browse the repository at this point in the history
fix the cache issue in workflow
  • Loading branch information
thearyanag authored Jan 5, 2025
2 parents 4be67a9 + 07d058e commit c749ebf
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
name: Typescript Client CI
name: ci
on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
jobs:
build:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
cache-dependency-path: pnpm-lock.json
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm run lint
- name: Run build
run: pnpm run build
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9.4.0

- uses: actions/setup-node@v4
with:
node-version: "23"
cache: "pnpm"

- name: Install dependencies
run: pnpm install -r --no-frozen-lockfile

- name: Run lint and fix
run: pnpm run lint:fix

- name: Build packages
run: pnpm run build

0 comments on commit c749ebf

Please sign in to comment.