Skip to content

Commit 5b4f80d

Browse files
committed
fix: update node support to v18
1 parent 0393ac4 commit 5b4f80d

File tree

4 files changed

+30
-18
lines changed

4 files changed

+30
-18
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,56 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
- name: Set node v16
17+
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v2
20+
21+
- name: Set node v18
1822
uses: actions/setup-node@v3
1923
with:
20-
node-version: '16'
24+
node-version: '18'
2125

2226
- name: Install
23-
run: npm install
27+
run: pnpm install --ignore-scripts
2428

2529
- name: Lint
26-
run: npm run lint
30+
run: pnpm run lint
2731

2832
typecheck:
2933
runs-on: ubuntu-latest
3034
steps:
3135
- uses: actions/checkout@v3
3236

33-
- name: Set node v16
37+
- name: Install pnpm
38+
uses: pnpm/action-setup@v2
39+
40+
- name: Set node v18
3441
uses: actions/setup-node@v3
3542
with:
36-
node-version: '16'
43+
node-version: '18'
3744

3845
- name: Install
39-
run: npm install
46+
run: pnpm install --ignore-scripts
4047

4148
- name: Typecheck
42-
run: npm run typecheck
49+
run: pnpm run typecheck
4350

4451
test:
4552
runs-on: ubuntu-latest
4653

4754
steps:
4855
- uses: actions/checkout@v3
4956

50-
- name: Set node v16
57+
- name: Install pnpm
58+
uses: pnpm/action-setup@v2
59+
60+
- name: Set node v18
5161
uses: actions/setup-node@v3
5262
with:
53-
node-version: '16'
63+
node-version: '18'
5464

5565
- name: Install
56-
run: npm install
66+
run: pnpm install
5767

5868
- name: Build
59-
run: npm run test
69+
run: pnpm run test

.husky/pre-commit

100644100755
File mode changed.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# replicate-fetch
22

3-
[![npm version](https://img.shields.io/npm/v/replicate-fetch.svg)](https://www.npmjs.com/package/replicate-fetch) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/GPTGenius/replicate-fetch/ci.yml?branch=main) ![GitHub](https://img.shields.io/github/license/lvqq/cap)
3+
[![npm version](https://img.shields.io/npm/v/replicate-fetch.svg)](https://www.npmjs.com/package/replicate-fetch) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/GPTGenius/replicate-fetch/ci.yml?branch=main) ![node-current (scoped)](https://img.shields.io/node/v/replicate-fetch) ![GitHub](https://img.shields.io/github/license/lvqq/cap)
44

55
Fetch api for Midjourney/Openjourney on Replicate
66

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "replicate-fetch",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -23,14 +23,16 @@
2323
"prepare": "husky install"
2424
},
2525
"engines": {
26-
"node": ">=16",
26+
"node": ">=18",
2727
"pnpm": ">=8"
2828
},
2929
"files": [
30-
"dist",
31-
"assets",
32-
"README.md"
30+
"dist"
3331
],
32+
"repository": {
33+
"type": "git",
34+
"url": "https://github.com/GPTGenius/replicate-fetch"
35+
},
3436
"devDependencies": {
3537
"@typescript-eslint/eslint-plugin": "^5.59.1",
3638
"@typescript-eslint/parser": "^5.59.1",

0 commit comments

Comments
 (0)