Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use yarn berry #437

Merged
merged 4 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: enable corepack
run: corepack enable

- name: Setup node
uses: actions/setup-node@v4
with:
Expand All @@ -36,7 +39,7 @@ jobs:
env:
NODE_ENV: production
with:
install_command: yarn install --frozen-lockfile --production && yarn patch
install_command: yarn workspaces focus --all --production && yarn patch-package
build_command: yarn build-storybook
path: storybook-static
checkout: false
7 changes: 5 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: enable corepack
run: corepack enable

- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn

- name: Install
run: yarn install --immutable --immutable-cache --check-cache
run: yarn install

- name: Patch
run: yarn patch
run: yarn patch-package

- name: Test
run: yarn test:ci
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: enable corepack
run: corepack enable

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile --production
run: yarn workspaces focus --all --production

- name: Patch
run: yarn patch
run: yarn patch-package

- name: Build
run: yarn build
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules
/.pnp
.pnp.js
.yarn

# testing
/coverage
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ yarn install
Stitches package needs to be patched after the upgrade to TypeScript version 5. You can run this script after installing the dependencies to apply the patch:

```sh
yarn patch
yarn patch-package
```

- Run the Storybook
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider storybook build",
"test": "jest --watch",
"test:ci": "jest --ci --silent",
"patch": "patch-package",
"prepare": "husky install",
"pre-commit": "lint-staged"
},
Expand Down Expand Up @@ -166,5 +165,5 @@
"engines": {
"node": ">=18.12.1"
},
"packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
"packageManager": "yarn@4.3.1"
}
Loading