chore: Switch from yarn to pnpm

This commit is contained in:
Sidharth Vinod
2025-03-16 19:19:10 -07:00
parent b5be8ca4fc
commit 592c3addac
13 changed files with 8529 additions and 7084 deletions
+6 -4
View File
@@ -17,7 +17,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache: pnpm
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Setup Pages
uses: actions/configure-pages@v5
@@ -34,9 +37,8 @@ jobs:
run: |
export DEPLOY=true
[ "$GITHUB_EVENT_NAME" != "pull_request" ] && rm -rf docs/_app/
yarn install
version=$(yarn version --patch --no-git-tag-version | grep "New version" | cut -d':' -f 2)
yarn build
pnpm install
pnpm build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
+8 -5
View File
@@ -20,28 +20,31 @@ jobs:
uses: actions/checkout@v4
- uses: actions/cache@v4
id: yarn-and-build-cache
id: pnpm-and-build-cache
with:
path: |
~/.cache/Cypress
build
node_modules
key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node_modules-build-
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'yarn'
cache: 'pnpm'
- name: Install pnpm
uses: pnpm/action-setup@v3
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: yarn build
start: yarn preview
build: pnpm build
start: pnpm preview
wait-on: 'http://localhost:3000'
record: true
parallel: true
+10 -7
View File
@@ -15,22 +15,25 @@ jobs:
uses: actions/checkout@v3
- uses: actions/cache@v3
id: yarn-and-build-cache
id: pnpm-and-build-cache
with:
path: |
build
node_modules
key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node_modules-build-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node_modules-build-
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
node-version-file: '.node-version'
cache: 'pnpm'
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Lint & Test
run: |
yarn install
yarn lint
yarn test:unit
pnpm install
pnpm lint
pnpm test:unit