chore: change yarn to pnpm

This commit is contained in:
Igor Klepacki 2025-01-23 09:20:58 +01:00
parent a8a3653106
commit fd19e69a69
7 changed files with 19203 additions and 15560 deletions

View file

@ -20,18 +20,24 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: "${{ env.node_version }}" node-version: "${{ env.node_version }}"
- name: Install dependencies
run: yarn install --frozen-lockfile - name: "Install pnpm & dependencies"
uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
- args: [--frozen-lockfile]
- name: Lint check - name: Lint check
run: yarn lint run: pnpm run lint
- name: Format check - name: Format check
run: yarn prettier run: pnpm run prettier
- name: Unit & Integration tests - name: Unit & Integration tests
run: yarn test run: pnpm run test
- name: Smoke & Acceptance tests - name: Smoke & Acceptance tests
run: | run: |
yarn build-storybook --quiet pnpm run build-storybook --quiet
yarn playwright install pnpm run playwright install
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \ "npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:127.0.0.1:6006 && yarn test-storybook" "npx wait-on tcp:127.0.0.1:6006 && pnpm run test-storybook"

View file

@ -29,8 +29,15 @@ jobs:
with: with:
node-version: "20.x" node-version: "20.x"
- name: Install dependencies - name: "Install pnpm & dependencies"
run: yarn install --frozen-lockfile uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
- args: [--frozen-lockfile]
# - name: Install dependencies
# run: pnpm install --frozen-lockfile
- name: Restore next build - name: Restore next build
uses: actions/cache@v3 uses: actions/cache@v3
@ -46,7 +53,7 @@ jobs:
env: env:
SKIP_BUILD_PRODUCT_REDIRECTS: 1 SKIP_BUILD_PRODUCT_REDIRECTS: 1
# change this if your site requires a custom build command # change this if your site requires a custom build command
run: yarn build run: pnpm build
# Here's the first place where next-bundle-analysis' own script is used # Here's the first place where next-bundle-analysis' own script is used
# This step pulls the raw bundle stats for the current bundle # This step pulls the raw bundle stats for the current bundle

View file

@ -18,12 +18,16 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: "${{ env.node_version }}" node-version: "${{ env.node_version }}"
- name: Install dependencies - name: "Install pnpm & dependencies"
run: yarn install --frozen-lockfile uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
- args: [--frozen-lockfile]
- name: Install Playwright Browsers - name: Install Playwright Browsers
run: yarn playwright install --with-deps run: pnpm playwright install --with-deps
- name: Run Playwright tests - name: Run Playwright tests
run: yarn playwright test run: pnpm playwright test
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
if: always() if: always()
with: with:

2
next-env.d.ts vendored
View file

@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" /> /// <reference types="next/image-types/global" />
// NOTE: This file should not be edited // NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information. // see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

View file

@ -10,7 +10,7 @@
"lint:fix": "next lint --fix", "lint:fix": "next lint --fix",
"prettier": "prettier --check \"**/*.{js,jsx,ts,tsx}\"", "prettier": "prettier --check \"**/*.{js,jsx,ts,tsx}\"",
"prettier:fix": "prettier --write \"**/*.{js,jsx,ts,tsx}\"", "prettier:fix": "prettier --write \"**/*.{js,jsx,ts,tsx}\"",
"analyze": "cross-env ANALYZE=true yarn build", "analyze": "cross-env ANALYZE=true pnpm run build",
"storybook": "cross-env FORCE_COLOR=1 storybook dev -p 6006", "storybook": "cross-env FORCE_COLOR=1 storybook dev -p 6006",
"test-storybook": "cross-env FORCE_COLOR=1 test-storybook", "test-storybook": "cross-env FORCE_COLOR=1 test-storybook",
"build-storybook": "cross-env FORCE_COLOR=1 storybook build", "build-storybook": "cross-env FORCE_COLOR=1 storybook build",
@ -116,5 +116,5 @@
"engines": { "engines": {
"node": ">=20.0.0" "node": ">=20.0.0"
}, },
"packageManager": "yarn@1.22.19" "packageManager": "pnpm@9.1.0"
} }

19168
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff

15542
yarn.lock

File diff suppressed because it is too large Load diff