Skip to content

Commit

Permalink
Corepack
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Nov 3, 2023
1 parent cda7f46 commit e80433b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 930 deletions.
6 changes: 0 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

# the linguist-vendored/linguist-generated attribute suppresses changes being
# displayed by default in pull requests.
/.yarn/** linguist-vendored

/dist/**/*.js -diff linguist-generated
/dist/**/*.txt -diff linguist-generated
/lint-doc/dist/*.js -diff linguist-generated
Expand All @@ -13,7 +11,3 @@
/lint-fmt/dist/*.txt -diff linguist-generated
/lint-opam/dist/*.js -diff linguist-generated
/lint-opam/dist/*.txt -diff linguist-generated

# Binary files
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
24 changes: 5 additions & 19 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,18 @@ jobs:
with:
node-version: 20

- name: Get yarn cache folder path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >>"$GITHUB_OUTPUT"
- run: corepack enable

- name: Retrieve yarn cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install npm packages
run: yarn install --immutable
- run: yarn install --immutable

- name: Check formatting
- run: yarn format:check
if: always()
run: yarn format:check

- name: Check lint
- run: yarn lint
if: always()
run: yarn lint

- name: Check type
- run: yarn typecheck
if: always()
run: yarn typecheck

- name: Ensure dist directory is up-to-date
shell: bash
Expand Down
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/.turbo/
/.yarn/*
!/.yarn/patches/
!/.yarn/plugins/
!/.yarn/releases/
!/.yarn/sdks/
!/.yarn/versions/
/.yarn/
/node_modules/
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.1.cjs

This file was deleted.

4 changes: 0 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
defaultSemverRangePrefix: ""

enableTelemetry: false

nodeLinker: node-modules

preferInteractive: true

yarnPath: .yarn/releases/yarn-4.0.1.cjs
2 changes: 1 addition & 1 deletion monorepo.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"settings": {
"search.exclude": {
"**/.turbo": true,
"**/dist": true,
"**/node_modules": true,
".yarn": true,
"yarn.lock": true
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"prettier-plugin-packagejson": "2.4.6",
"turbo": "1.10.16"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]+sha256.5a9d054e67fbbae8774cd3667736fd74407ffbbb336898523ca1fe87b3fc4ee3"
}

0 comments on commit e80433b

Please sign in to comment.