Skip to content

Commit 8225fdb

Browse files
committed
chore: update
1 parent 0c73a51 commit 8225fdb

File tree

4 files changed

+36
-3
lines changed

4 files changed

+36
-3
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,26 @@ jobs:
5959
node-version: ${{ matrix.node-version }}
6060
cache: 'pnpm'
6161

62+
# Special handling for Node.js 18: use Node.js 20 for tsgo dependency installation
63+
- name: Setup Node.js 20 for dependency installation (Node 18 only)
64+
if: steps.changes.outputs.changed == 'true' && matrix.node-version == 18
65+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
66+
with:
67+
node-version: 20
68+
cache: 'pnpm'
69+
6270
- name: Install Dependencies
6371
if: steps.changes.outputs.changed == 'true'
6472
run: pnpm install
6573

74+
# Switch back to Node.js 18 after dependency installation
75+
- name: Switch back to Node.js ${{ matrix.node-version }} (Node 18 only)
76+
if: steps.changes.outputs.changed == 'true' && matrix.node-version == 18
77+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
78+
with:
79+
node-version: ${{ matrix.node-version }}
80+
cache: 'pnpm'
81+
6682
- name: Type Check
6783
if: steps.changes.outputs.changed == 'true'
6884
run: pnpm run type-check
@@ -117,10 +133,26 @@ jobs:
117133
node-version: ${{ matrix.node-version }}
118134
cache: 'pnpm'
119135

136+
# Special handling for Node.js 18: use Node.js 20 for tsgo dependency installation
137+
- name: Setup Node.js 20 for dependency installation (Node 18 only)
138+
if: steps.changes.outputs.changed == 'true' && matrix.node-version == 18
139+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
140+
with:
141+
node-version: 20
142+
cache: 'pnpm'
143+
120144
- name: Install Dependencies
121145
if: steps.changes.outputs.changed == 'true'
122146
run: pnpm install && cd ./tests && pnpm playwright install chromium
123147

148+
# Switch back to Node.js 18 after dependency installation
149+
- name: Switch back to Node.js ${{ matrix.node-version }} (Node 18 only)
150+
if: steps.changes.outputs.changed == 'true' && matrix.node-version == 18
151+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
152+
with:
153+
node-version: ${{ matrix.node-version }}
154+
cache: 'pnpm'
155+
124156
- name: Integration Test (Rstest)
125157
if: steps.changes.outputs.changed == 'true'
126158
run: pnpm run test:integration

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"biomejs.biome",
44
"esbenp.prettier-vscode",
55
"streetsidesoftware.code-spell-checker",
6-
"unifiedjs.vscode-mdx"
6+
"unifiedjs.vscode-mdx",
7+
"TypeScriptTeam.native-preview"
78
]
89
}

packages/core/rslib.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default defineConfig({
3131
syntax: ['node 18.12.0'],
3232
dts: {
3333
bundle: false,
34-
tsgo: true,
34+
tsgo: !process.env.CI,
3535
distPath: './dist-types',
3636
},
3737
},

packages/plugin-dts/rslib.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default defineConfig({
99
syntax: ['node 18.12.0'],
1010
dts: {
1111
bundle: false,
12-
tsgo: true,
12+
tsgo: !process.env.CI,
1313
},
1414
},
1515
],

0 commit comments

Comments
 (0)