From 81f952604125918415ccfbdd6d9452b1e9e26f91 Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Thu, 19 Dec 2024 15:40:09 +0900 Subject: [PATCH] chore(.github/workflows/cr.yml): improve workflow with pnpm dlx and caching --- .github/workflows/cr.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index 23a21dde..5820efc8 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -7,11 +7,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: corepack enable + - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: node-version: 20 cache: 'pnpm' - - run: pnpm install + cache-dependency-path: '**/pnpm-lock.yaml' + - run: pnpm install --frozen-lockfile - run: pnpm build - - run: pnpx pkg-pr-new publish './dist' --compact --template './examples/*' + - run: pnpm dlx pkg-pr-new publish './dist' --compact --template './examples/*'