Skip to content

fix npm on windows

fix npm on windows #86

Workflow file for this run

name: tests
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version-file: '.nvmrc'
- if: runner.os == 'Windows'
# temporary, see https://github.com/nodejs/node/issues/52682
shell: bash
run: |
npm install -g npm
- name: run test
shell: bash
run: |
npm ci
npx playwright install --with-deps
npm install -g npm
npm install -g tsx
npm -v
node -v
node -e "console.log(globalThis)"
node -e "console.log(await import('tsx'))"
npm run test:all