diff --git a/.github/workflows/build-assets.yml b/.github/workflows/build-assets.yml index 09fb65f67..108c298c2 100644 --- a/.github/workflows/build-assets.yml +++ b/.github/workflows/build-assets.yml @@ -20,10 +20,10 @@ jobs: uses: pnpm/action-setup@v2 with: version: 8 - - name: Use Node.js v18 + - name: Use Node.js Active LTS uses: actions/setup-node@v3 with: - node-version: 18 + node-version: lts/* cache: 'pnpm' - name: Install dependencies (yarn) run: pnpm i diff --git a/.github/workflows/comment-on-issue.yml b/.github/workflows/comment-on-issue.yml index 06859a355..e35bb96b7 100644 --- a/.github/workflows/comment-on-issue.yml +++ b/.github/workflows/comment-on-issue.yml @@ -16,7 +16,7 @@ jobs: version: 8 - uses: actions/setup-node@v3 # just need its cache with: - node-version: 18 + node-version: lts/* cache: 'pnpm' - name: Install dependencies (pnpm) # needed since we need to parse markdown, so we also use got instead run: pnpm i @@ -26,4 +26,4 @@ jobs: github-token: ${{secrets.GITHUB_TOKEN}} script: | const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-issue/call-maintainer.js`) - return await script({ github, context, core }) + return script({ github, context, core }) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 466cbd6cf..546028f3e 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -23,7 +23,7 @@ jobs: version: 8 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: lts/* cache: 'pnpm' - run: pnpm i - run: pnpm i diff --git a/.github/workflows/issue-command.yml b/.github/workflows/issue-command.yml index 05bc30031..1daf33364 100644 --- a/.github/workflows/issue-command.yml +++ b/.github/workflows/issue-command.yml @@ -32,12 +32,10 @@ jobs: contents: read issues: write steps: - - uses: bhermann/issue-volunteer@v0.1.20 + - uses: bdougie/take-action@v1.5 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - assign_phrase: '/wip' - label_phase1: RSS proposal - label_phase2: RSS bug + token: ${{ secrets.GITHUB_TOKEN }} + trigger: '/wip' test-on-demand: name: Test route on demand @@ -56,14 +54,14 @@ jobs: with: version: 8 - - name: Use Node.js v18 + - name: Use Node.js Active LTS uses: actions/setup-node@v3 with: - node-version: 18 + node-version: lts/* cache: 'pnpm' - name: Install dependencies (pnpm) - run: pnpm i + run: pnpm i && pnpm rb - name: Fetch affected routes id: fetchRoute @@ -77,7 +75,7 @@ jobs: const number = event.issue.number const sender = event.comment.user.login const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-route/identify.js`) - return await script({ github, context, core }, body, number, sender) + return script({ github, context, core }, body, number, sender) - name: Start RSSHub if: env.TEST_CONTINUE @@ -104,7 +102,7 @@ jobs: core.info(`${link}, ${routes}, ${number}`) const got = require("got") const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-route/test.js`) - return await script({ github, context, core, got }, link, routes, number) + return script({ github, context, core, got }, link, routes, number) - name: Print logs if: (env.TEST_CONTINUE) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 5746efe3d..8f8d6b3b8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -25,7 +25,7 @@ jobs: version: 8 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: lts/* cache: 'pnpm' registry-url: 'https://registry.npmjs.org' - name: Install dependencies (pnpm) diff --git a/.github/workflows/pr-deploy-route-test.yml b/.github/workflows/pr-deploy-route-test.yml index 57c6fd1b0..fd5c9fea9 100644 --- a/.github/workflows/pr-deploy-route-test.yml +++ b/.github/workflows/pr-deploy-route-test.yml @@ -45,7 +45,7 @@ jobs: const number = PR.number const sender = PR.user.login const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-route/identify.js`) - return await script({ github, context, core }, body, number, sender) + return script({ github, context, core }, body, number, sender) - name: Fetch Docker image if: (env.TEST_CONTINUE) @@ -73,7 +73,7 @@ jobs: - uses: actions/setup-node@v3 # just need its cache if: (env.TEST_CONTINUE) with: - node-version: 18 + node-version: lts/* cache: 'pnpm' - name: Install dependencies (pnpm) # `got` needed since `github.request` disallows HTTP requests @@ -97,7 +97,7 @@ jobs: core.info(`${link}, ${routes}, ${number}`) const got = require("got"); const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-route/test.js`) - return await script({ github, context, core, got }, link, routes, number) + return script({ github, context, core, got }, link, routes, number) - name: Print Docker container logs if: (env.TEST_CONTINUE) diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 8c1c114f1..4a552ffd6 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -15,7 +15,7 @@ jobs: version: 8 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: lts/* cache: 'pnpm' - run: pnpm i - name: Lint @@ -36,7 +36,7 @@ jobs: version: 8 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: lts/* cache: 'pnpm' - run: pnpm i - name: Lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eae7727b0..4023b0361 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 16, 18 ] + node-version: [ 16, 18, 20 ] name: Jest on Node ${{ matrix.node-version }} steps: - name: Collect Workflow Telemetry @@ -78,7 +78,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 16, 18 ] + node-version: [ 16, 18, 20 ] chromium: - name: bundled Chromium dependency: '' @@ -127,7 +127,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 16, 18 ] + node-version: [ 16, 18, 20 ] defaults: run: working-directory: docs @@ -159,7 +159,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 16, 18 ] + node-version: [ 16, 18, 20 ] name: Build radar and maintainer on Node ${{ matrix.node-version }} steps: - uses: actions/checkout@v3