Skip to content

Commit e4d9cf4

Browse files
committed
chore: migrate to pnpm
1 parent 1e183ef commit e4d9cf4

File tree

35 files changed

+18394
-162771
lines changed

35 files changed

+18394
-162771
lines changed

.github/actions/nightly-release/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ runs:
3535
repository: ${{ inputs.checkout-repo }}
3636
ref: ${{ inputs.checkout-ref }}
3737
fetch-depth: 0
38-
- uses: ./.github/actions/yarn-install
38+
- uses: ./.github/actions/pnpm-install
3939
- run: >-
4040
node -e "
4141
const json = require('./lerna.json');
@@ -45,9 +45,9 @@ runs:
4545
- id: get-version
4646
run: echo "full-version=$(node -e "console.log(require('./lerna.json').version)")-${{ inputs.release-id }}" >> $GITHUB_OUTPUT
4747
shell: bash
48-
- run: yarn lerna version ${{ steps.get-version.outputs.full-version }} --no-push --no-commit-hooks --force-publish --yes
48+
- run: pnpm lerna version ${{ steps.get-version.outputs.full-version }} --no-push --no-commit-hooks --force-publish --yes
4949
shell: bash
50-
- run: yarn conventional-changelog -p angular --outfile ./packages/vuetify/CHANGELOG.md -r 2
50+
- run: pnpm conventional-changelog -p angular --outfile ./packages/vuetify/CHANGELOG.md -r 2
5151
shell: bash
5252
- run: >-
5353
node -e "fs.writeFileSync(
@@ -56,9 +56,9 @@ runs:
5656
)"
5757
shell: bash
5858
working-directory: ./packages/vuetify
59-
- run: yarn lerna run build --scope @vuetify/nightly
59+
- run: pnpm lerna run build --scope @vuetify/nightly
6060
shell: bash
61-
- run: yarn lerna run build --scope @vuetify/api-generator
61+
- run: pnpm lerna run build --scope @vuetify/api-generator
6262
shell: bash
6363
- name: NPM Release
6464
run: |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: pnpm install
2+
description: Restore node_modules and cache, then run pnpm install
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: actions/cache@v4
8+
with:
9+
path: |
10+
node_modules
11+
**/node_modules
12+
/home/runner/.cache/pnpm
13+
/home/runner/.cache/Cypress
14+
key: pnpm-${{ runner.os }}-${{ hashFiles('./pnpm-lock.yaml') }}
15+
- uses: pnpm/action-setup@v4
16+
- run: pnpm i --frozen-lockfile
17+
shell: bash

.github/actions/yarn-install/action.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- uses: actions/checkout@v4
34-
- uses: ./.github/actions/yarn-install
35-
- run: yarn build vuetify
34+
- uses: ./.github/actions/pnpm-install
35+
- run: pnpm build vuetify
3636
- uses: ./.github/actions/upload-artifact
3737
with:
3838
name: vuetify-dist
@@ -54,8 +54,8 @@ jobs:
5454
- uses: ./.github/actions/download-artifact
5555
with:
5656
name: vuetify-dist
57-
- uses: ./.github/actions/yarn-install
58-
- run: yarn lerna run lint $SCOPES
57+
- uses: ./.github/actions/pnpm-install
58+
- run: pnpm lerna run lint $SCOPES
5959
env:
6060
SCOPES: ${{ matrix.scopes }}
6161

@@ -66,8 +66,8 @@ jobs:
6666
runs-on: ubuntu-latest
6767
steps:
6868
- uses: actions/checkout@v4
69-
- uses: ./.github/actions/yarn-install
70-
- run: yarn run test:coverage -i
69+
- uses: ./.github/actions/pnpm-install
70+
- run: pnpm run test:coverage -i
7171
working-directory: ./packages/vuetify
7272
- uses: codecov/codecov-action@v4
7373

@@ -78,13 +78,13 @@ jobs:
7878
runs-on: ubuntu-latest
7979
steps:
8080
- uses: actions/checkout@v4
81-
- uses: ./.github/actions/yarn-install
82-
- run: yarn cy:run --record --parallel --ci-build-id $GITHUB_RUN_ID
81+
- uses: ./.github/actions/pnpm-install
82+
- run: pnpm cy:run --record --parallel --ci-build-id $GITHUB_RUN_ID
8383
if: ${{ !startswith(github.ref, 'refs/tags/v') && github.repository_owner == 'vuetifyjs' }}
8484
working-directory: ./packages/vuetify
8585
env:
8686
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
87-
- run: yarn cy:run
87+
- run: pnpm cy:run
8888
if: ${{ !startswith(github.ref, 'refs/tags/v') && github.repository_owner != 'vuetifyjs' }}
8989
working-directory: ./packages/vuetify
9090
- uses: actions/upload-artifact@v3
@@ -105,8 +105,8 @@ jobs:
105105
- uses: ./.github/actions/download-artifact
106106
with:
107107
name: vuetify-dist
108-
- uses: ./.github/actions/yarn-install
109-
- run: yarn build api
108+
- uses: ./.github/actions/pnpm-install
109+
- run: pnpm build api
110110
- run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
111111
- name: NPM Release
112112
run: bash scripts/deploy.sh
@@ -115,7 +115,7 @@ jobs:
115115
RELEASE_TAG: ${{ env.RELEASE_TAG }}
116116
- name: GitHub release
117117
id: create_release
118-
run: yarn conventional-github-releaser -p vuetify
118+
run: pnpm conventional-github-releaser -p vuetify
119119
env:
120120
DEBUG: '*'
121121
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -130,10 +130,10 @@ jobs:
130130
- uses: ./.github/actions/download-artifact
131131
with:
132132
name: vuetify-dist
133-
- uses: ./.github/actions/yarn-install
133+
- uses: ./.github/actions/pnpm-install
134134
- uses: ./.github/actions/download-locales
135-
- run: yarn build api
136-
- run: yarn build docs
135+
- run: pnpm build api
136+
- run: pnpm build docs
137137
env:
138138
NODE_OPTIONS: --max-old-space-size=4096
139139
VITE_COSMIC_2_BUCKET_SLUG: ${{ secrets.COSMIC_2_BUCKET_SLUG }}
@@ -161,8 +161,8 @@ jobs:
161161
- uses: ./.github/actions/download-artifact
162162
with:
163163
name: docs-dist
164-
- uses: ./.github/actions/yarn-install
165-
- run: yarn global add vercel
164+
- uses: ./.github/actions/pnpm-install
165+
- run: pnpm add vercel --global
166166
- run: node scripts/deploy-and-alias.js ${{ github.ref }}
167167
env:
168168
NOW_TOKEN: ${{ secrets.NOW_TOKEN }}

.github/workflows/crowdin-uploads.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,11 @@ env:
2222
jobs:
2323
upload-to-crowdin:
2424
runs-on: ubuntu-latest
25-
2625
steps:
27-
28-
- name: Checkout
29-
uses: actions/checkout@v4
30-
31-
- name: Upload
32-
uses: crowdin/[email protected]
33-
with:
34-
config: crowdin.yml
35-
crowdin_branch_name: ${{ env.CROWDIN_BRANCH }}
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
- name: Upload
29+
uses: crowdin/[email protected]
30+
with:
31+
config: crowdin.yml
32+
crowdin_branch_name: ${{ env.CROWDIN_BRANCH }}

.github/workflows/nightly-schedule.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ jobs:
6464
echo "Last commit was more than 24 hours ago, skipping tests"
6565
exit 1
6666
fi
67-
- uses: ./.github/actions/yarn-install
67+
- uses: ./.github/actions/pnpm-install
6868
- run: echo "COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
69-
- run: yarn cy:run
69+
- run: pnpm cy:run
7070
working-directory: ./packages/vuetify
7171
env:
7272
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
auto-install-peers=false
2+
ignore-workspace-root-check=true

.pnpmfile.cjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
hooks: {
3+
readPackage (pkg, context) {
4+
if (pkg.name === 'vite-ssr') {
5+
delete pkg.dependencies['react-router-dom']
6+
delete pkg.dependencies['react-ssr-prepass']
7+
pkg.peerDependencies.vite = '*'
8+
pkg.peerDependencies['@vueuse/head'] = '*'
9+
pkg.peerDependencies['@vitejs/plugin-vue'] = '*'
10+
}
11+
if (['vite-plugin-warmup', 'unplugin-fonts', 'vite-plugin-md'].includes(pkg.name)) {
12+
pkg.peerDependencies.vite = '*'
13+
}
14+
if (['@rollup/pluginutils', 'rollup-plugin-terser', '@rollup/plugin-replace'].includes(pkg.name)) {
15+
pkg.peerDependencies.rollup = '*'
16+
}
17+
return pkg
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)