Skip to content

Commit

Permalink
try using sed
Browse files Browse the repository at this point in the history
  • Loading branch information
charkour committed Mar 10, 2024
1 parent 737f050 commit abb534d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
zustand: [latest, 4.2.0]
zustand: [latest, 4.2.0, 4.1.0]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -47,6 +47,11 @@ jobs:
- name: Install Zustand ${{ matrix.zustand }}
run: pnpm add zustand@${{ matrix.zustand }} -w

- name: Patch tsup config
if: ${{ matrix.zustand == '4.1.0' }}
# Patch the tsup config to use `dts: false` for Zustand 4.1.0
run: sed -i~ 's/"dts": true/"dts": false/' tsup.config.json

- name: Build
run: pnpm run build

Expand Down

0 comments on commit abb534d

Please sign in to comment.