Skip to content

Commit 749366a

Browse files
authored
Use "lts/*" version for Node (#119)
1 parent d13cbe9 commit 749366a

4 files changed

Lines changed: 34 additions & 34 deletions

File tree

.github/workflows/check-badges.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: Check badges in README.md
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
build-and-test:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v4
1515

16-
- name: Check badges in README.md
17-
run: ./scripts/check-badges.bash "README.md"
16+
- name: Check badges in README.md
17+
run: ./scripts/check-badges.bash "README.md"

.github/workflows/node.js.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
matrix:
2121
# see https://nodejs.org/en/about/previous-releases for active releases
2222
# https://github.com/nodejs/release#release-schedule
23-
node-version: [ 18.x, 20.x, 22.x, lts/*, latest ]
23+
node-version: [18.x, 20.x, 22.x, lts/*, latest]
2424

2525
steps:
26-
- uses: actions/checkout@v4
27-
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v4
29-
with:
30-
node-version: ${{ matrix.node-version }}
31-
cache: 'npm'
32-
- run: make github-ci
33-
env:
34-
TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}
26+
- uses: actions/checkout@v4
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
cache: "npm"
32+
- run: make github-ci
33+
env:
34+
TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Publish Package
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
permissions:
9-
id-token: write # Required for OIDC
9+
id-token: write # Required for OIDC
1010
contents: read
1111

1212
jobs:
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: '24'
21-
registry-url: 'https://registry.npmjs.org'
20+
node-version: "lts/*"
21+
registry-url: "https://registry.npmjs.org"
2222
- run: npm ci
23-
- run: npm publish
23+
- run: npm publish

.github/workflows/try-publish.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ jobs:
1414
shell: bash
1515

1616
steps:
17-
- uses: actions/checkout@v4
18-
- name: Use the latest versiob of Node.js
19-
uses: actions/setup-node@v4
20-
with:
21-
# Switch node-version: latest (23) to 22 for a while
22-
# https://github.com/nodejs/node/issues/55410
23-
# npm pack crash in Node 23
24-
# node-version: latest
25-
node-version: 22.x
26-
cache: 'npm'
27-
- name: Init
28-
run: make init
29-
- name: Dry run
30-
run: npm publish --dry-run
17+
- uses: actions/checkout@v4
18+
- name: Use the latest versiob of Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
# Switch node-version: latest (23) to 22 for a while
22+
# https://github.com/nodejs/node/issues/55410
23+
# npm pack crash in Node 23
24+
# node-version: latest
25+
node-version: "lts/*"
26+
cache: "npm"
27+
- name: Init
28+
run: make init
29+
- name: Dry run
30+
run: npm publish --dry-run

0 commit comments

Comments
 (0)