From 4dc2467f49cc34ade705da3726b5e600298fc138 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sun, 8 Oct 2023 23:07:02 +0100 Subject: [PATCH] CI: simplify prebuild file copying --- .github/workflows/ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e521e12a..d76d905b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,18 +110,14 @@ jobs: npm run clean npm install --ignore-scripts npm test - - name: Prebuild copy package.json - if: matrix.prebuild && startsWith(github.ref, 'refs/tags/') - uses: chpoit/js-copy-github-action@v1 - with: - source: package.json - target: src/package.json - name: Prebuild if: matrix.prebuild && startsWith(github.ref, 'refs/tags/') env: prebuild_upload: ${{ secrets.GITHUB_TOKEN }} - working-directory: src - run: npx prebuild + run: | + node -e "require('fs').cpSync('package.json', 'src/package.json')" + cd src + npx prebuild github-runner-qemu: permissions: contents: write