Skip to content

Commit

Permalink
chore: use yarn berry
Browse files Browse the repository at this point in the history
  • Loading branch information
gndz07 authored Jul 15, 2024
1 parent 13102a0 commit d3d9a10
Show file tree
Hide file tree
Showing 8 changed files with 17,911 additions and 12,820 deletions.
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

0 comments on commit d3d9a10

Please sign in to comment.