Skip to content

Commit

Permalink
chore: using blacksmith cache (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini authored Sep 18, 2024
1 parent 34c0cf3 commit d6f67d6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v4

- name: Use Node.js 20.x
uses: useblacksmith/setup-node@v5
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"

- name: Setup PNPM
uses: pnpm/action-setup@v4
cache: "pnpm"

- name: Install Dependencies
run: pnpm install
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: useblacksmith/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"

- name: Setup PNPM
uses: pnpm/action-setup@v4
cache: "pnpm"

- name: Install Dependencies
run: pnpm install
Expand Down Expand Up @@ -61,14 +62,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: useblacksmith/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"

- name: Setup PNPM
uses: pnpm/action-setup@v4
cache: "pnpm"

- name: Install Dependencies
run: pnpm install
Expand Down Expand Up @@ -105,14 +107,15 @@ jobs:
with:
token: ${{ secrets.NODE_CLI }}

- name: Setup PNPM
uses: pnpm/action-setup@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: useblacksmith/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"

- name: Setup PNPM
uses: pnpm/action-setup@v4
cache: "pnpm"

- name: Install Dependencies
run: pnpm install
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ jobs:
if: ${{ steps.release.outputs.releases_created }}
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v4

- name: Setup Node
uses: useblacksmith/setup-node@v5
if: ${{ steps.release.outputs.releases_created }}
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"

- name: Setup PNPM
uses: pnpm/action-setup@v4
cache: "pnpm"

- name: Install Dependencies
run: pnpm install
Expand Down

0 comments on commit d6f67d6

Please sign in to comment.