mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
make "Debug packaged uppy dependencies" fail when package.json has
workspace:* entries rather than just logging it
This commit is contained in:
parent
ad8295c3d5
commit
1a255a8178
1 changed files with 1 additions and 1 deletions
2
.github/workflows/bundlers.yml
vendored
2
.github/workflows/bundlers.yml
vendored
|
|
@ -75,7 +75,7 @@ jobs:
|
|||
rm -rf /tmp/uppy-debug
|
||||
mkdir -p /tmp/uppy-debug
|
||||
tar -xzf /tmp/artifacts/uppy-${{ github.sha }}.tgz --strip-components 1 -C /tmp/uppy-debug
|
||||
node -e 'const pkg=require("/tmp/uppy-debug/package.json");const fields=["dependencies","peerDependencies","optionalDependencies","devDependencies"];let found=false;for(const f of fields){if(!pkg[f])continue;for(const [k,v] of Object.entries(pkg[f])){if(String(v).startsWith("workspace:")){console.log(`${f}: ${k}=${v}`);found=true;}}}if(!found)console.log("No workspace:* entries in packaged uppy package.json");'
|
||||
node -e 'const pkg=require("/tmp/uppy-debug/package.json");const fields=["dependencies","peerDependencies","optionalDependencies","devDependencies"];let found=false;for(const f of fields){if(!pkg[f])continue;for(const [k,v] of Object.entries(pkg[f])){if(String(v).startsWith("workspace:")){console.log(`${f}: ${k}=${v}`);found=true;}}}if(found){process.exit(1)}else{console.log("No workspace:* entries in packaged uppy package.json")}'
|
||||
- name: Upload artifact
|
||||
if: success()
|
||||
uses: actions/upload-artifact@v6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue