File tree Expand file tree Collapse file tree 3 files changed +35
-16
lines changed
Expand file tree Collapse file tree 3 files changed +35
-16
lines changed Original file line number Diff line number Diff line change 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
1415jobs :
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
Original file line number Diff line number Diff line change 1010
1111env :
1212 NODE_VERSION : 20.18.1
13+ PNPM_VERSION : 10.7.1
1314
1415jobs :
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 :
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 :
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 :
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
Original file line number Diff line number Diff line change 66 - main
77 workflow_dispatch : # Allows manual triggering
88
9+ env :
10+ NODE_VERSION : 20.18.1
11+ PNPM_VERSION : 10.7.1
12+
913jobs :
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
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
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
You can’t perform that action at this time.
0 commit comments