Skip to content

Commit 9b38368

Browse files
committed
Update CI deps
1 parent b792428 commit 9b38368

File tree

4 files changed

+57
-580
lines changed

4 files changed

+57
-580
lines changed

.github/workflows/nodeci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ jobs:
1616
strategy:
1717
matrix:
1818
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19-
node-version: [ 16.x, 18.x, 20.x ]
19+
node-version: [ 18.x, 20.x, 22.x ]
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626
cache: 'npm'
2727
- run: npm ci
2828
- run: npm run build
2929
- name: Store artifacts
3030
if: matrix.node-version == '20.x'
31-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
3232
with:
3333
name: build-assets
3434
path: assets/
@@ -39,9 +39,9 @@ jobs:
3939
# Only run when pushing to main branch
4040
if: github.event_name != 'pull_request'
4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343
# Download artifact instead of rebuilding
44-
- uses: actions/download-artifact@v3
44+
- uses: actions/download-artifact@v4
4545
with:
4646
name: build-assets
4747
path: assets/
@@ -63,10 +63,10 @@ jobs:
6363
bodyFile: "body.md"
6464
token: ${{ secrets.GITHUB_TOKEN }}
6565
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
66-
- uses: actions/setup-node@v3
66+
- uses: actions/setup-node@v4
6767
if: ${{ steps.create-tag.outcome == 'success' }}
6868
with:
69-
node-version: '20.x'
69+
node-version: '22.x'
7070
registry-url: 'https://registry.npmjs.org'
7171
- run: npm publish ./assets/hsluv-${{ env.HSLUV_VERSION }}.tgz --tag rc
7272
if: ${{ steps.create-tag.outcome == 'success' && contains(env.HSLUV_VERSION, 'rc') }}

build.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ node test/tmp/test.cjs
4949
echo "CommonJS require OK"
5050

5151
# Test that TypeScript can discover types with various configurations
52-
# Discussion: https://github.com/hsluv/hsluv-javascript/pull/4
53-
for m in "node10" "node16" "bundler"; do
54-
(cd test/tmp && npx tsc --strict true --module es2020 --moduleResolution "$m" test.ts)
55-
echo "tsc (--moduleResolution $m) OK"
52+
for opts in "--module NodeNext --moduleResolution NodeNext" "--module es2015 --moduleResolution bundler"; do
53+
(cd test/tmp && npx tsc --strict true --noEmit true $opts test.ts)
54+
echo "tsc (--moduleResolution $opts) OK"
5655
done

0 commit comments

Comments
 (0)