Skip to content

Commit

Permalink
Fix running create tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilzu committed Jul 15, 2024
1 parent ea452ae commit ee34632
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,19 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm install --production
- run: npm install --global .
cache: ${{ matrix.package-manager }}
- run: ${{ matrix.package-manager }} install
env:
NODE_ENV: production

- name: Create empty package.json for pnpm
run: |
with open("package.json", "w") as f:
f.write('{}')
shell: python
working-directory: ${{ runner.temp }}
- run: npm link .
if: matrix.package-manager == 'npm'
- run: yarn link
if: matrix.package-manager == 'yarn'
- run: pnpm link --global
if: matrix.package-manager == 'pnpm'
- run: ${{ matrix.package-manager }} exec create-ts-node new-project

- run: ${{ matrix.package-manager }} create ts-node new-project
working-directory: ${{ runner.temp }}
- run: ${{ matrix.package-manager }} install
working-directory: ${{ runner.temp }}/new-project
Expand Down

0 comments on commit ee34632

Please sign in to comment.