From 7c13bb0fc9e2c45217edf7c9a854c2b16ec7bfc5 Mon Sep 17 00:00:00 2001 From: Ron Nuss Date: Fri, 25 Aug 2023 14:41:33 +0300 Subject: [PATCH 1/2] fix(v0.6.3): corrected types, release action, test --- .github/workflows/release.yml | 4 ++-- package.json | 4 ++-- test/allTests.test.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afa8357..9cbcd14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,11 +9,11 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - name: ⌛ Checkout + - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - - name: ⏰ Setup Node.js + - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: "18" diff --git a/package.json b/package.json index 09e470b..60e00d2 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "hidabroot", - "version": "0.6.2-beta", + "version": "0.6.3-beta", "description": "An unofficial API for hidabroot", "main": "./lib/index.js", - "types": "build/index.d.ts", + "types": "lib/index.d.ts", "scripts": { "test": "mocha ./test/allTests.test.ts", "build": "tsc", diff --git a/test/allTests.test.ts b/test/allTests.test.ts index b2d24ac..be06819 100644 --- a/test/allTests.test.ts +++ b/test/allTests.test.ts @@ -1,6 +1,6 @@ import { describe } from "mocha"; import { expect } from "chai"; -import { todayNews, getArticle } from "../src/index"; +import { todayNews, getArticle } from "../lib/index"; describe("todayNews function", () => { it("should return the json object of today news", async () => { From 64db55826f0efb41591649421aabf73d449e204d Mon Sep 17 00:00:00 2001 From: Ron Nuss Date: Fri, 25 Aug 2023 14:44:48 +0300 Subject: [PATCH 2/2] fix(pr.yml): use only node 18 --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 1e50abc..941c6c5 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [16.x, 18.x] + node-version: [18.x] steps: - uses: actions/checkout@v3