mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[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.
This commit is contained in:
6
.github/workflows/commit_artifacts.yml
vendored
6
.github/workflows/commit_artifacts.yml
vendored
@@ -8,17 +8,11 @@ jobs:
|
||||
download_artifacts:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.x
|
||||
- run: npm init -y
|
||||
- run: npm install node-fetch@2
|
||||
- name: Download and unzip artifacts
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
const cp = require('child_process');
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
function sleep(ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
|
||||
Reference in New Issue
Block a user