Skip to content

Commit a21a6e7

Browse files
authored
Merge pull request #2 from Borewit/update-to-yarn-berry
Update to yarn@4.6.0
2 parents 404cd2b + 40cb76b commit a21a6e7

File tree

4 files changed

+4416
-2809
lines changed

4 files changed

+4416
-2809
lines changed
Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ jobs:
99

1010
steps:
1111

12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

14-
- uses: actions/setup-node@v1
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
1516
with:
16-
node-version: 16.x
17+
node-version: 20.x
1718

18-
- name: Install production dependencies, check node engine compatibility
19-
run: yarn install --production=true
19+
- name: Enable Corepack
20+
run: corepack enable
2021

21-
- name: Install development dependencies
22-
run: yarn install --production=false --ignore-engines
22+
- name: Install dependencies
23+
run: yarn install
2324

2425
- name: Build & Code analysis
2526
run: yarn run lint
@@ -31,7 +32,7 @@ jobs:
3132
run: yarn run test
3233

3334
- name: Upload build
34-
uses: actions/upload-artifact@v2
35+
uses: actions/upload-artifact@v4
3536
with:
3637
name: build
3738
path: |
@@ -41,29 +42,36 @@ jobs:
4142
4243
test:
4344

45+
name: Node.js
4446
runs-on: ubuntu-latest
4547

48+
env:
49+
YARN_IGNORE_NODE: 1
50+
4651
needs: build
4752

4853
strategy:
4954
matrix:
50-
node-version: [14.x, 16.x, 18.x, 20.x]
55+
node-version: [16.x, 18.x, 20.x]
5156

5257
steps:
5358

5459
- name: 'Checkout the repository'
55-
uses: actions/checkout@v2
60+
uses: actions/checkout@v4
5661

5762
- name: Test with Node.js ${{ matrix.node-version }}
58-
uses: actions/setup-node@v1
63+
uses: actions/setup-node@v4
5964
with:
6065
node-version: ${{ matrix.node-version }}
6166

67+
- name: Enable Corepack
68+
run: corepack enable
69+
6270
- name: Install dependencies
63-
run: yarn install --ignore-engines
71+
run: yarn install
6472

6573
- name: Download build
66-
uses: actions/download-artifact@v2
74+
uses: actions/download-artifact@v4
6775
with:
6876
name: build
6977

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "Bounded batch queue, where items are produced and consumed based on user specified functions",
55
"type": "module",
66
"license": "MIT",
7-
"private": false,
87
"engines": {
98
"node": ">= 14.0.0",
109
"npm": ">= 6.0.0"
@@ -44,9 +43,9 @@
4443
],
4544
"contributors": [],
4645
"scripts": {
47-
"clean": "del-cli src/**/*.js src/**/*.js.map src/**/*.d.ts test/**/*.js test/**/*.js.map test/**/*.d.ts",
46+
"clean": "del-cli 'src/**/*.js' 'src/**/*.js.map' 'src/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map' 'test/**/*.d.ts'",
4847
"compile-src": "tsc -p src",
49-
"build": "npm run clean && npm run compile-src",
48+
"build": "yarn run clean && npm run compile-src",
5049
"lint": "eslint src test --ext .ts",
5150
"test": "mocha"
5251
},
@@ -68,5 +67,6 @@
6867
"npm-run-all": "^4.1.5",
6968
"ts-node": "^10.9.1",
7069
"typescript": "^5.2.2"
71-
}
70+
},
71+
"packageManager": "yarn@4.6.0"
7272
}

0 commit comments

Comments
 (0)