Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,23 @@ jobs:

strategy:
matrix:
node-version: [22.x, 24.x, 26.x]
node-version: [20.x, 22.x, 24.x, 26.x]
shiki-version: ["1.29.2", "2.5.0", "3.23.0", "4.5.0"]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Use Node.js ${{ matrix.node-version }}
# Development tools require a newer Node.js than the package runtime.
- name: Use development Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ matrix.node-version }}
node-version-file: ".node-version"
cache: "npm"
- run: npm ci
- run: npm install shiki@${{ matrix.shiki-version }} --no-save --ignore-scripts
- run: npm run build
- name: Use runtime Node.js ${{ matrix.node-version }}
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ matrix.node-version }}
- run: npm test
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version-file: '.node-version'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v26.13.0
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
engine-strict=true
min-release-age=7
registry=https://npm.flatt.tech
strict-allow-scripts=true
allow-git=none
allow-remote=none
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,10 @@
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"allowScripts": {
"esbuild@0.27.7": true,
"fsevents": false,
"esbuild@0.21.5": true
}
}
Loading