feat(deps): upgrade Yarn v4 (corepack)
This commit is contained in:
parent
3fb493f400
commit
905d058be5
9 changed files with 21803 additions and 15608 deletions
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
/.yarn/releases/** binary
|
||||||
|
/.yarn/plugins/** binary
|
||||||
13
.github/workflows/check.yml
vendored
13
.github/workflows/check.yml
vendored
|
|
@ -13,21 +13,32 @@ jobs:
|
||||||
check:
|
check:
|
||||||
name: Check
|
name: Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV
|
- run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV
|
||||||
- name: "use node ${{ env.node_version }}"
|
|
||||||
|
- name: Enable Corepack
|
||||||
|
run: corepack enable
|
||||||
|
|
||||||
|
- name: "Set up Node.js ${{ env.node_version }}"
|
||||||
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 dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
- name: Lint check
|
- name: Lint check
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
|
|
||||||
- name: Format check
|
- name: Format check
|
||||||
run: yarn prettier
|
run: yarn prettier
|
||||||
|
|
||||||
- name: Unit & Integration tests
|
- name: Unit & Integration tests
|
||||||
run: yarn test
|
run: yarn test
|
||||||
|
|
||||||
- name: Smoke & Acceptance tests
|
- name: Smoke & Acceptance tests
|
||||||
run: |
|
run: |
|
||||||
yarn build-storybook --quiet
|
yarn build-storybook --quiet
|
||||||
|
|
|
||||||
11
.github/workflows/nextjs_bundle_analysis.yml
vendored
11
.github/workflows/nextjs_bundle_analysis.yml
vendored
|
|
@ -4,10 +4,12 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- master
|
||||||
- develop
|
- develop
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- master
|
||||||
- develop
|
- develop
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
@ -24,10 +26,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up node
|
- run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Enable Corepack
|
||||||
|
run: corepack enable
|
||||||
|
|
||||||
|
- name: "Set up Node.js ${{ env.node_version }}"
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: "20.x"
|
node-version: "${{ env.node_version }}"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
|
|
|
||||||
11
.github/workflows/playwright.yml
vendored
11
.github/workflows/playwright.yml
vendored
|
|
@ -13,17 +13,26 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV
|
- run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV
|
||||||
- name: "use node ${{ env.node_version }}"
|
|
||||||
|
- name: Enable Corepack
|
||||||
|
run: corepack enable
|
||||||
|
|
||||||
|
- name: "Set up Node.js ${{ env.node_version }}"
|
||||||
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 dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: yarn playwright install --with-deps
|
run: yarn playwright install --with-deps
|
||||||
|
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
run: yarn playwright test
|
run: yarn playwright test
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
13
.gitignore
vendored
13
.gitignore
vendored
|
|
@ -28,8 +28,19 @@ yarn-error.log*
|
||||||
.env.development.local
|
.env.development.local
|
||||||
.env.test.local
|
.env.test.local
|
||||||
.env.production.local
|
.env.production.local
|
||||||
|
|
||||||
|
# playwright
|
||||||
/test-results/
|
/test-results/
|
||||||
/playwright-report/
|
/playwright-report/
|
||||||
/playwright/.cache/
|
/playwright/.cache/
|
||||||
|
|
||||||
/.npm-only-allow
|
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
|
||||||
|
.pnp.*
|
||||||
|
.yarn/*
|
||||||
|
!.yarn/patches
|
||||||
|
!.yarn/plugins
|
||||||
|
!.yarn/releases
|
||||||
|
!.yarn/sdks
|
||||||
|
!.yarn/versions
|
||||||
|
|
||||||
|
/.npm-only-allow
|
||||||
|
|
|
||||||
1
.yarnrc.yml
Normal file
1
.yarnrc.yml
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
nodeLinker: node-modules
|
||||||
14
README.md
14
README.md
|
|
@ -72,21 +72,27 @@ To get started with this boilerplate, follow these steps:
|
||||||
git clone https://github.com/<your_username)/next-enterprise.git
|
git clone https://github.com/<your_username)/next-enterprise.git
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Install the dependencies:
|
2. Enable Corepack (required for Yarn@4)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
corepack enable
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Install the dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Run the development server:
|
4. Run the development server:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn dev
|
yarn dev
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
5. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||||
|
|
||||||
5. This project uses a git hook to enforce [conventional commits](https://github.com/qoomon/git-conventional-commits). To install the git hook, run the following command in the root directory of the project:
|
6. This project uses a git hook to enforce [conventional commits](https://github.com/qoomon/git-conventional-commits). To install the git hook, run the following command in the root directory of the project:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
brew install pre-commit
|
brew install pre-commit
|
||||||
|
|
|
||||||
|
|
@ -118,5 +118,5 @@
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.0.0"
|
"node": ">=20.0.0"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@1.22.19"
|
"packageManager": "yarn@4.5.3"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue