Skip to content

Commit b7b9bba

Browse files
committed
Housekeeping
* Update build matrix * Update release script * Update dependencies
1 parent c54f270 commit b7b9bba

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ jobs:
88
matrix:
99
node-version:
1010
- 14.x
11-
- 16.x
12-
- 17.x
11+
- 18.x
1312
steps:
1413
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3.1.0
14+
- uses: actions/setup-node@v3
1615
with:
1716
node-version: ${{ matrix.node-version }}
1817
- run: npm run test:prepare && npm install-test

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async function optimizeBitmap(sourcePath, format,
158158

159159
if(width || height) {
160160
let fit = crop ? "cover" : "inside";
161-
image.resize({ width: width, height: height, fit: sharp.fit[fit] });
161+
image.resize({ width, height, fit: sharp.fit[fit] });
162162
}
163163

164164
switch(format) {

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,19 @@
1919
"url": "https://github.com/faucet-pipeline/faucet-pipeline-images/issues"
2020
},
2121
"homepage": "https://www.faucet-pipeline.org",
22+
"engines": {
23+
"node": ">= 14"
24+
},
2225
"dependencies": {
2326
"faucet-pipeline-core": "^1.7.0",
24-
"sharp": "^0.30.1",
27+
"sharp": "^0.30.4",
2528
"svgo": "^2.8.0"
2629
},
2730
"devDependencies": {
28-
"eslint-config-fnd": "^1.12.0",
31+
"eslint-config-fnd": "^1.13.0",
2932
"file-type-cli": "^6.0.0",
30-
"json-diff": "^0.7.1",
33+
"json-diff": "^0.7.4",
3134
"npm-run-all": "^4.1.5",
32-
"release-util-fnd": "^2.0.1"
35+
"release-util-fnd": "^3.0.0"
3336
}
3437
}

release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -eu
44

55
. ./node_modules/release-util-fnd/lib.sh
66

7-
pre_release_checks main
7+
pre_release_checks
88
npm test
99

1010
create_package > /dev/null
11-
publish_package origin main
11+
publish_package

0 commit comments

Comments
 (0)