Skip to content

Commit

Permalink
chore(.github/workflows/cr.yml): improve workflow with pnpm dlx and c…
Browse files Browse the repository at this point in the history
…aching
  • Loading branch information
sukvvon committed Dec 19, 2024
1 parent 24753f6 commit 81f9526
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*'

0 comments on commit 81f9526

Please sign in to comment.