Skip to content

Commit

Permalink
cache pnpm config (#140)
Browse files Browse the repository at this point in the history
Fix the workflow config
  • Loading branch information
thearyanag authored Jan 5, 2025
2 parents 90e10a9 + 0aacffb commit 4be67a9
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,31 @@
name: Typescript Client CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
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 pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm run lint
- name: Run build
run: pnpm run build
# - run: pnpm run test # TODO: add mock env for testing
run: pnpm run build

0 comments on commit 4be67a9

Please sign in to comment.