From a1cd4d7d3eeec58ef245b075dd4d367e9aaa23f3 Mon Sep 17 00:00:00 2001 From: "Visal .In" Date: Thu, 20 Jun 2024 19:56:29 +0700 Subject: [PATCH] setup workflow --- .github/workflows/check.yaml | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 88f2fdda..c8d50061 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -14,43 +14,15 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: 8.13.1 - run_install: false - - uses: actions/setup-node@v3 with: node-version: 20 - cache: pnpm - - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - name: Cache pnpm - 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: Cache turbo tasks - uses: actions/cache@v4 - with: - path: .turbo - key: ${{ runner.os }}-turbo-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-turbo- - name: Install dependencies - run: pnpm install + run: npm install - name: Run Check - run: pnpm run staged + run: npm run staged - name: Log success run: echo "✅ Success!"