From a397a750cbbabbee75728cc8192bc2b3b3403988 Mon Sep 17 00:00:00 2001 From: Denis Averin Date: Mon, 26 Jan 2026 18:20:51 +0700 Subject: [PATCH] Use "lts/*" version for Node --- .github/workflows/check-badges.yml | 10 +++++----- .github/workflows/node.js.yml | 20 ++++++++++---------- .github/workflows/publish.yml | 10 +++++----- .github/workflows/try-publish.yml | 28 ++++++++++++++-------------- 4 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/check-badges.yml b/.github/workflows/check-badges.yml index d673011..0232d29 100644 --- a/.github/workflows/check-badges.yml +++ b/.github/workflows/check-badges.yml @@ -2,16 +2,16 @@ name: Check badges in README.md on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build-and-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Check badges in README.md - run: ./scripts/check-badges.bash "README.md" + - name: Check badges in README.md + run: ./scripts/check-badges.bash "README.md" diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 3d5bcbe..2420c93 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,15 +20,15 @@ jobs: matrix: # see https://nodejs.org/en/about/previous-releases for active releases # https://github.com/nodejs/release#release-schedule - node-version: [ 18.x, 20.x, 22.x, lts/*, latest ] + node-version: [18.x, 20.x, 22.x, lts/*, latest] steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: make github-ci - env: - TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }} + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: make github-ci + env: + TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 66b6479..7fa71dd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,10 +3,10 @@ name: Publish Package on: push: tags: - - 'v*' + - "v*" permissions: - id-token: write # Required for OIDC + id-token: write # Required for OIDC contents: read jobs: @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: '24' - registry-url: 'https://registry.npmjs.org' + node-version: "lts/*" + registry-url: "https://registry.npmjs.org" - run: npm ci - - run: npm publish \ No newline at end of file + - run: npm publish diff --git a/.github/workflows/try-publish.yml b/.github/workflows/try-publish.yml index d5d6bd7..d93a427 100644 --- a/.github/workflows/try-publish.yml +++ b/.github/workflows/try-publish.yml @@ -14,17 +14,17 @@ jobs: shell: bash steps: - - uses: actions/checkout@v4 - - name: Use the latest versiob of Node.js - uses: actions/setup-node@v4 - with: - # Switch node-version: latest (23) to 22 for a while - # https://github.com/nodejs/node/issues/55410 - # npm pack crash in Node 23 - # node-version: latest - node-version: 22.x - cache: 'npm' - - name: Init - run: make init - - name: Dry run - run: npm publish --dry-run + - uses: actions/checkout@v4 + - name: Use the latest versiob of Node.js + uses: actions/setup-node@v4 + with: + # Switch node-version: latest (23) to 22 for a while + # https://github.com/nodejs/node/issues/55410 + # npm pack crash in Node 23 + # node-version: latest + node-version: "lts/*" + cache: "npm" + - name: Init + run: make init + - name: Dry run + run: npm publish --dry-run