Skip to content

Commit 523faa8

Browse files
committed
Install pnpm in ci
1 parent 3a4d2a2 commit 523faa8

File tree

3 files changed

+35
-16
lines changed

3 files changed

+35
-16
lines changed

.github/workflows/changeset-release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
REPO_PATH: ${{ github.repository }}
1111
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
1212
NODE_VERSION: 20.18.1
13+
PNPM_VERSION: 10.7.1
1314

1415
jobs:
1516
# Job 1: Create version bump PR when changesets are merged to main
@@ -30,25 +31,23 @@ jobs:
3031
with:
3132
fetch-depth: 0
3233
ref: ${{ env.GIT_REF }}
33-
34+
- name: Install pnpm
35+
uses: pnpm/action-setup@v4
36+
with:
37+
version: ${{ env.PNPM_VERSION }}
3438
- name: Setup Node.js
3539
uses: actions/setup-node@v4
3640
with:
3741
node-version: ${{ env.NODE_VERSION }}
3842
cache: 'pnpm'
39-
4043
- name: Install Dependencies
4144
run: pnpm install
42-
43-
# Check if there are any new changesets to process
4445
- name: Check for changesets
4546
id: check-changesets
4647
run: |
4748
NEW_CHANGESETS=$(find .changeset -name "*.md" ! -name "README.md" | wc -l | tr -d ' ')
4849
echo "Changesets diff with previous version: $NEW_CHANGESETS"
4950
echo "new_changesets=$NEW_CHANGESETS" >> $GITHUB_OUTPUT
50-
51-
# Create version bump PR using changesets/action if there are new changesets
5251
- name: Changeset Pull Request
5352
if: steps.check-changesets.outputs.new_changesets != '0'
5453
id: changesets

.github/workflows/code-qa.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,18 @@ on:
1010

1111
env:
1212
NODE_VERSION: 20.18.1
13+
PNPM_VERSION: 10.7.1
1314

1415
jobs:
1516
compile:
1617
runs-on: ubuntu-latest
1718
steps:
1819
- name: Checkout code
1920
uses: actions/checkout@v4
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: ${{ env.PNPM_VERSION }}
2025
- name: Setup Node.js
2126
uses: actions/setup-node@v4
2227
with:
@@ -36,6 +41,10 @@ jobs:
3641
steps:
3742
- name: Checkout code
3843
uses: actions/checkout@v4
44+
- name: Install pnpm
45+
uses: pnpm/action-setup@v4
46+
with:
47+
version: ${{ env.PNPM_VERSION }}
3948
- name: Setup Node.js
4049
uses: actions/setup-node@v4
4150
with:
@@ -51,6 +60,10 @@ jobs:
5160
steps:
5261
- name: Checkout code
5362
uses: actions/checkout@v4
63+
- name: Install pnpm
64+
uses: pnpm/action-setup@v4
65+
with:
66+
version: ${{ env.PNPM_VERSION }}
5467
- name: Setup Node.js
5568
uses: actions/setup-node@v4
5669
with:
@@ -69,6 +82,10 @@ jobs:
6982
steps:
7083
- name: Checkout code
7184
uses: actions/checkout@v4
85+
- name: Install pnpm
86+
uses: pnpm/action-setup@v4
87+
with:
88+
version: ${{ env.PNPM_VERSION }}
7289
- name: Setup Node.js
7390
uses: actions/setup-node@v4
7491
with:
@@ -141,4 +158,4 @@ jobs:
141158
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.local
142159
- name: Run integration tests
143160
working-directory: e2e
144-
run: xvfb-run -a pnpm ci
161+
run: xvfb-run -a pnpm install

.github/workflows/update-contributors.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
workflow_dispatch: # Allows manual triggering
88

9+
env:
10+
NODE_VERSION: 20.18.1
11+
PNPM_VERSION: 10.7.1
12+
913
jobs:
1014
update-contributors:
1115
runs-on: ubuntu-latest
@@ -14,22 +18,22 @@ jobs:
1418
pull-requests: write # Needed for creating PRs
1519
steps:
1620
- name: Checkout code
17-
uses: actions/checkout@v3
18-
21+
uses: actions/checkout@v4
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: ${{ env.PNPM_VERSION }}
1926
- name: Setup Node.js
20-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2128
with:
2229
node-version: ${{ env.NODE_VERSION }}
2330
cache: 'pnpm'
24-
2531
- name: Disable Husky
2632
run: |
2733
echo "HUSKY=0" >> $GITHUB_ENV
2834
git config --global core.hooksPath /dev/null
29-
3035
- name: Install dependencies
31-
run: npm ci
32-
36+
run: pnpm install
3337
- name: Update contributors and format
3438
run: |
3539
pnpm update-contributors
@@ -38,7 +42,6 @@ jobs:
3842
id: check-changes
3943
env:
4044
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
4245
- name: Create Pull Request
4346
if: steps.check-changes.outputs.changes == 'true'
4447
uses: peter-evans/create-pull-request@v5
@@ -51,6 +54,6 @@ jobs:
5154
title: "Update contributors list"
5255
body: |
5356
Automated update of contributors list and related files
54-
57+
5558
This PR was created automatically by a GitHub Action workflow and includes all changed files.
5659
base: main

0 commit comments

Comments
 (0)