Skip to content

Commit 544a992

Browse files
committed
Update to yarn@4.6.0
1 parent 404cd2b commit 544a992

4 files changed

Lines changed: 4413 additions & 2809 deletions

File tree

Lines changed: 18 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,33 @@ jobs:
4142
4243
test:
4344

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

4648
needs: build
4749

4850
strategy:
4951
matrix:
50-
node-version: [14.x, 16.x, 18.x, 20.x]
52+
node-version: [16.x, 18.x, 20.x]
5153

5254
steps:
5355

5456
- name: 'Checkout the repository'
55-
uses: actions/checkout@v2
57+
uses: actions/checkout@v4
5658

5759
- name: Test with Node.js ${{ matrix.node-version }}
58-
uses: actions/setup-node@v1
60+
uses: actions/setup-node@v4
5961
with:
6062
node-version: ${{ matrix.node-version }}
6163

64+
- name: Enable Corepack
65+
run: corepack enable
66+
6267
- name: Install dependencies
63-
run: yarn install --ignore-engines
68+
run: yarn install
6469

6570
- name: Download build
66-
uses: actions/download-artifact@v2
71+
uses: actions/download-artifact@v4
6772
with:
6873
name: build
6974

.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)