2
0

Invoke prebuild directly so we can see what's going on

This commit is contained in:
Markus Olsson
2024-06-03 17:59:05 +02:00
parent 84ce8a80a4
commit 48dcd71dc0
2 changed files with 1 additions and 17 deletions

View File

@@ -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 }}

View File

@@ -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' }
)