Skip to content

Commit b84b841

Browse files
committed
change how to tell ts compiler target on node 12
1 parent 2f8183c commit b84b841

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ jobs:
3939
runs-on: ubuntu-latest
4040

4141
strategy:
42+
fail-fast: false
4243
matrix:
4344
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
4445
node-version: [12.x, 14.x, 16.x, 17.x]
45-
include:
46-
- node-version: 12.x
47-
ts-node-compiler-options: '{"target":"es2019"}'
4846

4947
steps:
5048
- uses: actions/checkout@v2
@@ -54,8 +52,9 @@ jobs:
5452
node-version: ${{ matrix.node-version }}
5553
cache: 'npm'
5654
- run: npm ci
55+
- name: Target older ts version for nodejs 12
56+
if: matrix.node-version == '12.x'
57+
run: echo "TS_NODE_COMPILER_OPTIONS='{\"target":"es2019\"}'" >> $GITHUB_ENV
5758
- run: npm test
58-
env:
59-
TS_NODE_COMPILER_OPTIONS: ${{ matrix.ts-node-compiler-options }}
6059
# Currently broken
6160
#- run: npm run node-coveralls

0 commit comments

Comments
 (0)