Skip to content

Commit 8d8b81a

Browse files
authored
Typescript 5.3, Node 20 (#47)
1 parent 780fadf commit 8d8b81a

File tree

10 files changed

+419
-350
lines changed

10 files changed

+419
-350
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,14 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: [18.x, 20.x]
14+
node-version: [20.x, 21.x]
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Use Node.js ${{ matrix.node-version }}
1818
uses: actions/setup-node@v3
1919
with:
2020
node-version: ${{ matrix.node-version }}
2121
cache: 'npm'
22-
- name: Check Label
23-
uses: checkdigit/github-actions/check-label@main
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2622
- name: Install dependencies
2723
run: npm ci --ignore-scripts
2824
- name: Audit Signatures
@@ -41,7 +37,7 @@ jobs:
4137
name: Branch Build
4238
strategy:
4339
matrix:
44-
node-version: [18.x, 20.x]
40+
node-version: [20.x, 21.x]
4541
steps:
4642
- uses: actions/checkout@v3
4743
with:
@@ -51,10 +47,6 @@ jobs:
5147
with:
5248
node-version: ${{ matrix.node-version }}
5349
cache: 'npm'
54-
- name: Check Label
55-
uses: checkdigit/github-actions/check-label@main
56-
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5850
- name: Install dependencies
5951
run: npm ci --ignore-scripts
6052
- name: Audit Signatures

.github/workflows/publish-beta.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
with:
1919
node-version: '20.x'
2020
registry-url: 'https://registry.npmjs.org'
21+
- name: Check Label
22+
uses: checkdigit/github-actions/check-label@main
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2125
- name: Install dependencies
2226
run: npm ci --ignore-scripts
2327
- name: Audit Signatures

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
1013
name: Publish to NPM
1114
steps:
1215
- uses: actions/checkout@v3
@@ -21,6 +24,6 @@ jobs:
2124
- name: Run Test
2225
run: npm run test
2326
- name: Publish
24-
run: npm publish
27+
run: npm publish --provenance
2528
env:
2629
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This module contains the standard Check Digit Typescript configuration, along wi
1010

1111
### Typescript Configuration
1212

13-
- currently requires Node 18 or above.
13+
- currently requires Node 20 or above.
1414
- emits `esnext`, with the default libraries, to avoid down-leveling. It is intended that application spec tests pick
1515
up any issues with using newer features unavailable in a particular environment. Browsers and NodeJS are fast moving
1616
targets, and can add language features at any time.

0 commit comments

Comments
 (0)