diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index 3eda622..c2538c4 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -4,24 +4,18 @@ description: Installs Node.js & package dependencies runs: using: composite steps: - - name: Setup Node - uses: actions/setup-node@v3 + - name: Setup pnpm + uses: pnpm/action-setup@v4 with: - node-version: 18 + version: 10 + run_install: false - - name: Get yarn cache directory path - shell: bash - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v3 - id: yarn-cache + - name: Setup Node.js + uses: actions/setup-node@v4 with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version: 22 + cache: 'pnpm' - - name: Install Packages + - name: Install dependencies shell: bash - run: yarn install --frozen-lockfile --non-interactive --ignore-scripts \ No newline at end of file + run: pnpm install --frozen-lockfile \ No newline at end of file diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 63c9e46..f2f10c8 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -10,22 +10,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install dependencies uses: ./.github/actions/install - name: Run check - run: yarn astro:check + run: pnpm astro:check eslint: name: Run ESLint runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install dependencies uses: ./.github/actions/install - name: Run check - run: yarn eslint \ No newline at end of file + run: pnpm eslint \ No newline at end of file