Skip to content

Commit

Permalink
Update to yarn berry
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Jul 14, 2024
1 parent 7a494c5 commit ecf0329
Show file tree
Hide file tree
Showing 7 changed files with 7,270 additions and 4,401 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,23 @@ updates:
ignore:
- dependency-name: "peek-readable"
versions: ["4.x"]
groups:
eslint:
dependency-type: "development"
patterns:
- "eslint"
- "@eslint/compat"
- "@eslint/eslintrc"
- "@eslint/js"
- "eslint-config-prettier"
- "eslint-import-resolver-typescript"
- "eslint-plugin-*"
- "@typescript-eslint/*"
remark:
dependency-type: "development"
patterns:
- "remark*"
types:
dependency-type: "development"
patterns:
- "@types/*"
20 changes: 14 additions & 6 deletions .github/workflows/nodejs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Node.js CI
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]

jobs:

Expand All @@ -15,13 +17,13 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 22.x
node-version: 20.x

- name: Install production dependencies, check node engine compatiblity
run: yarn install --production=true
- name: Enable Corepack
run: corepack enable

- name: Install development dependencies
run: yarn install --production=false --ignore-engines
- name: Install dependencies
run: yarn install

- name: Build & Code analysis
run: yarn run lint
Expand All @@ -45,6 +47,9 @@ jobs:
runs-on: ubuntu-latest
needs: build

env:
YARN_IGNORE_NODE: 1

strategy:
matrix:
node-version: [16.x, 18.x, 20.x, 22.x]
Expand All @@ -59,8 +64,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn install --ignore-engines
run: yarn install

- name: Download build
uses: actions/download-artifact@v4
Expand Down
20 changes: 17 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
*.iml
# Node module
node_modules

#IntelliJ IDEA:
.idea
*.iml

# Yarn:
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Project
lib/**/*.js
lib/**/*.js.map
lib/**/*.d.ts
test/**/*.js
test/**/*.js.map
test/**/*.d.ts
test/resources/tmp.dat
coverage
.idea
coverage
894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.3.1.cjs
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@
"uint",
"stream",
"streaming"
]
],
"packageManager": "yarn@4.3.1"
}
Loading

0 comments on commit ecf0329

Please sign in to comment.