diff --git a/.github/workflows/test_node.yml b/.github/workflows/test_node.yml index 929b6b232b..ca3bb3c5f6 100644 --- a/.github/workflows/test_node.yml +++ b/.github/workflows/test_node.yml @@ -20,9 +20,11 @@ jobs: node-version-file: package.json # We need to skip the fallback download because downloading will fail on release branches because the new version isn't available yet. - - run: SENTRYCLI_SKIP_DOWNLOAD=1 yarn install --frozen-lockfile + # We have to use npm here because yarn fails on the non-existing existing optionalDependency version: + # https://github.com/yarnpkg/berry/issues/2425#issuecomment-1627807326 + - run: SENTRYCLI_SKIP_DOWNLOAD=1 npm install - - run: yarn check:types + - run: npm run check:types test_node: strategy: @@ -42,13 +44,12 @@ jobs: node-version: ${{ matrix.node-version }} # We need to skip the fallback download because downloading will fail on release branches because the new version isn't available yet. - - run: SENTRYCLI_SKIP_DOWNLOAD=1 yarn install --frozen-lockfile - if: matrix.node-version != '10.x' && matrix.node-version != '12.x' + # We have to use npm here because yarn fails on the non-existing existing optionalDependency version: + # https://github.com/yarnpkg/berry/issues/2425#issuecomment-1627807326 + - run: SENTRYCLI_SKIP_DOWNLOAD=1 npm install # older node versions need an older nft - - run: | - SENTRYCLI_SKIP_DOWNLOAD=1 yarn install --ignore-engines --frozen-lockfile - SENTRYCLI_SKIP_DOWNLOAD=1 yarn add @vercel/nft@0.22.1 --ignore-engines + - run: SENTRYCLI_SKIP_DOWNLOAD=1 npm install @vercel/nft@0.22.1 if: matrix.node-version == '10.x' || matrix.node-version == '12.x' - - run: yarn test + - run: npm test