Skip to content

Commit a8ab339

Browse files
committed
refactor(ci): streamline pnpm setup in CI workflows
1 parent 86e38be commit a8ab339

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ jobs:
1818
echo "Head ref: ${{ github.head_ref }}"
1919
echo "Base ref: ${{ github.base_ref }}"
2020
21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: 10
25+
2126
- name: Setup Node.js
2227
uses: actions/setup-node@v4
2328
with:
2429
node-version-file: .nvmrc
2530
cache: pnpm
2631

27-
- name: Setup pnpm
28-
uses: pnpm/action-setup@v4
29-
with:
30-
version: 10
31-
3232
- name: Install dependencies
3333
run: pnpm install --frozen-lockfile
3434

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18-
- uses: pnpm/action-setup@v4
19-
with:
20-
version: 10
2118
- uses: actions/setup-node@v4
2219
with:
2320
node-version-file: .nvmrc
2421
registry-url: https://registry.npmjs.org/
2522
scope: "@smakss"
2623
cache: pnpm
24+
- uses: pnpm/action-setup@v4
25+
with:
26+
version: 10
2727
- run: pnpm install --frozen-lockfile
2828
- run: pnpm build
2929
- name: Release (master)

0 commit comments

Comments
 (0)