diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0d98ea7..7cea341 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,9 @@ jobs: steps: - uses: actions/checkout@master - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v4 + with: + node-version: 20 - uses: ./ with: version: '${{ matrix.version }}' diff --git a/action.yml b/action.yml index 7b5da99..04b2ae2 100644 --- a/action.yml +++ b/action.yml @@ -19,5 +19,5 @@ inputs: description: 'Proxy server' required: false runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' diff --git a/dist/index.js b/dist/index.js index 8738a4c..5c62fe1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -335,7 +335,6 @@ const URL = __webpack_require__(835).URL const { https } = __webpack_require__(549) const AdmZip = __webpack_require__(639) const HttpsProxyAgent = __webpack_require__(338) -var proxy = process.env.http_proxy || 'http://168.63.76.32:3128'; const selectPlatforn = (platform) => platform ? [null, platform] : diff --git a/index.js b/index.js index 93b9625..3ba1a2e 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,6 @@ const URL = require('url').URL const { https } = require('follow-redirects') const AdmZip = require('adm-zip') const HttpsProxyAgent = require('https-proxy-agent') -var proxy = process.env.http_proxy || 'http://168.63.76.32:3128'; const selectPlatforn = (platform) => platform ? [null, platform] :