Skip to content

Commit 18fb245

Browse files
committed
adjust yarn install (-f for Node 10 and 12)
1 parent 868eb1d commit 18fb245

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/test_node.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
node-version-file: package.json
2121

2222
# We need to skip the fallback download because downloading will fail on release branches because the new version isn't available yet.
23-
- run: SENTRYCLI_SKIP_DOWNLOAD=1 npm install
23+
- run: SENTRYCLI_SKIP_DOWNLOAD=1 yarn install --frozen-lockfile
2424

25-
- run: npm run check:types
25+
- run: yarn check:types
2626

2727
test_node:
2828
strategy:
@@ -42,10 +42,13 @@ jobs:
4242
node-version: ${{ matrix.node-version }}
4343

4444
# We need to skip the fallback download because downloading will fail on release branches because the new version isn't available yet.
45-
- run: SENTRYCLI_SKIP_DOWNLOAD=1 yarn install
45+
- run: SENTRYCLI_SKIP_DOWNLOAD=1 yarn install --frozen-lockfile
46+
if: matrix.node-version != '10.x' && matrix.node-version != '12.x'
4647

4748
# older node versions need an older nft
48-
- run: SENTRYCLI_SKIP_DOWNLOAD=1 yarn add @vercel/nft@0.22.1
49+
- run: |
50+
SENTRYCLI_SKIP_DOWNLOAD=1 yarn install -f --frozen-lockfile
51+
SENTRYCLI_SKIP_DOWNLOAD=1 yarn add @vercel/nft@0.22.1
4952
if: matrix.node-version == '10.x' || matrix.node-version == '12.x'
5053
5154
- run: yarn test

0 commit comments

Comments
 (0)