mirror of
https://example.com
synced 2024-11-22 23:56:39 +09:00
fix: get latest version from the forked repo (close #54)
This commit is contained in:
parent
33466420ba
commit
d0b8984d0e
2 changed files with 5 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "pnpm node ./built/index.js",
|
"start": "pnpm node --dns-result-order=ipv4first ./built/index.js",
|
||||||
"start:test": "NODE_ENV=test pnpm node ./built/index.js",
|
"start:test": "NODE_ENV=test pnpm node ./built/index.js",
|
||||||
"migrate": "pnpm run migrate:typeorm && pnpm run migrate:cargo",
|
"migrate": "pnpm run migrate:typeorm && pnpm run migrate:cargo",
|
||||||
"migrate:typeorm": "typeorm migration:run -d ormconfig.js",
|
"migrate:typeorm": "typeorm migration:run -d ormconfig.js",
|
||||||
|
|
|
@ -15,10 +15,12 @@ export const paramDef = {
|
||||||
|
|
||||||
export default define(meta, paramDef, async () => {
|
export default define(meta, paramDef, async () => {
|
||||||
let tag_name;
|
let tag_name;
|
||||||
await fetch("https://git.joinfirefish.org/api/v4/projects/7/releases")
|
await fetch(
|
||||||
|
"https://code.naskya.net/api/v1/repos/naskya/firefish/tags?page=1&limit=1",
|
||||||
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
tag_name = data[0].tag_name;
|
tag_name = data[0].name;
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue