mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 02:30:12 +02:00
CI: simplify prebuild file copying
This commit is contained in:
parent
f54ceb0973
commit
4dc2467f49
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user