Skip to content

Commit

Permalink
Use pnpm cache in CI for faster checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ShukantPal committed Oct 8, 2024
1 parent 87874b4 commit c8a7f47
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v4
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}

- name: Setup PNPM
uses: pnpm/action-setup@v4
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- run: pnpm i -g @microsoft/rush

- run: rush install
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v4
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}

- name: Setup PNPM
uses: pnpm/action-setup@v4
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- run: pnpm i -g @microsoft/rush

- run: rush install
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v4
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}

- name: Setup PNPM
uses: pnpm/action-setup@v4
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- run: pnpm i -g @microsoft/rush

- run: rush install
Expand Down

0 comments on commit c8a7f47

Please sign in to comment.