@samitouri / QOS-React / commits / 21b49103d6

[difftrain] Remove dependency on node-fetch (#26182)

`fetch` is now provided by github-scripts implicitly in https://github.com/actions/github-script/releases/tag/v6.4.0, so this was causing a duplicate declaration error.

lauren committed Feb 16, 2023 at 15:47 UTC 21b49103d6e79706401b3d66e15f6a9a15edf8ce
1 file changed -6
.github/workflows/commit_artifacts.yml
-6
@@ -8,17 +8,11 @@ jobs:
8 download_artifacts:
9 runs-on: ubuntu-latest
10 steps:
11 - - uses: actions/setup-node@v3
12 - with:
13 - node-version: 18.x
14 - - run: npm init -y
15 - - run: npm install node-fetch@2
11 - name: Download and unzip artifacts
12 uses: actions/github-script@v6
13 with:
14 script: |
15 const cp = require('child_process');
21 - const fetch = require('node-fetch');
16
17 function sleep(ms) {
18 return new Promise(resolve => setTimeout(resolve, ms));