Skip to content

Commit

Permalink
Update types to support latest Typescript 5.6 features (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlansley authored Oct 24, 2024
1 parent 0fa8310 commit 081c55d
Show file tree
Hide file tree
Showing 19 changed files with 2,463 additions and 1,252 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/check-published-scheduled.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
name: Check Published

on:
workflow_dispatch:
schedule:
- cron: '11 23 * * *'

jobs:
checkPublished:
runs-on: ubuntu-latest
name: Check Published
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Check Published
uses: checkdigit/github-actions/check-published@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }}
DEBUG: '*'
SLACK_PUBLISH_MISMATCH: ${{ secrets.SLACK_PUBLISH_MISMATCH }}
27 changes: 20 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,30 @@ on:
branches:
- 'main'

env:
CI: true

jobs:
pullRequestBuild:
name: Pull Request Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 21.x]
node-version: ['20.x', '22.x', '23.x']
steps:
- uses: actions/checkout@v4
- name: Checkout Code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
- name: Install Dependencies
run: npm ci --ignore-scripts
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Prepare
run: npm run prepare
- name: Compile
run: npm run ci:compile
- name: Check Code Style
Expand All @@ -31,22 +39,27 @@ jobs:
run: npm run ci:test

branchBuild:
runs-on: ubuntu-latest
name: Branch Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 21.x]
node-version: ['20.x', '22.x', '23.x']
steps:
- uses: actions/checkout@v4
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
- name: Install Dependencies
run: npm ci --ignore-scripts
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Prepare
run: npm run prepare
- name: Compile
run: npm run ci:compile
- name: Check Code Style
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
analyze:
name: Analyze
name: CodeQL analysis
runs-on: ubuntu-latest
permissions:
actions: read
Expand All @@ -21,7 +21,7 @@ jobs:
matrix:
language: ['javascript']
steps:
- name: Checkout repository
- name: Checkout code
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Dependency Review
uses: actions/dependency-review-action@v4
with:
allow-licenses: ${{ vars.ALLOW_LICENSES }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@checkdigit/eslint-config';
Loading

0 comments on commit 081c55d

Please sign in to comment.