mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +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 run clean
|
||||||
npm install --ignore-scripts
|
npm install --ignore-scripts
|
||||||
npm test
|
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
|
- name: Prebuild
|
||||||
if: matrix.prebuild && startsWith(github.ref, 'refs/tags/')
|
if: matrix.prebuild && startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
prebuild_upload: ${{ secrets.GITHUB_TOKEN }}
|
prebuild_upload: ${{ secrets.GITHUB_TOKEN }}
|
||||||
working-directory: src
|
run: |
|
||||||
run: npx prebuild
|
node -e "require('fs').cpSync('package.json', 'src/package.json')"
|
||||||
|
cd src
|
||||||
|
npx prebuild
|
||||||
github-runner-qemu:
|
github-runner-qemu:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
Loading…
x
Reference in New Issue
Block a user