From 48dcd71dc0012009c99461b99d821482cfe7ea5e Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Mon, 3 Jun 2024 17:59:05 +0200 Subject: [PATCH] Invoke prebuild directly so we can see what's going on --- .github/workflows/ci.yml | 4 +--- script/upload.js | 14 -------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 script/upload.js diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a126a78..a077a57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,4 @@ jobs: if: ${{ matrix.os == 'windows-latest' }} - name: Publish if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - run: yarn upload - env: - GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: yarn prebuild --upload-all ${{ secrets.GITHUB_TOKEN }} diff --git a/script/upload.js b/script/upload.js deleted file mode 100644 index a79e4d9..0000000 --- a/script/upload.js +++ /dev/null @@ -1,14 +0,0 @@ -// to ensure that env not in the CI server log - -const path = require('path') -const { spawnSync } = require('child_process') - -spawnSync( - path.join( - __dirname, - '../node_modules/.bin/prebuild' + - (process.platform === 'win32' ? '.cmd' : '') - ), - ['--upload-all', process.env.GITHUB_AUTH_TOKEN], - { stdio: 'inherit' } -)