Skip to content

build(zip.yml): remove the secondary wrap of the zipped directory #2

build(zip.yml): remove the secondary wrap of the zipped directory

build(zip.yml): remove the secondary wrap of the zipped directory #2

Workflow file for this run

name: Build and Collect ZIP
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
# Optional safety check if dist/ might not exist
- name: Verify dist directory
run: |
if [ ! -d "dist" ]; then
echo "dist/ directory not found. Make sure your build outputs to dist/."
exit 1
fi
# (Optional) List what was produced
- name: List build output
run: ls -lah dist
# Upload any .zip files from dist/ as a workflow artifact
- name: Upload ZIP artifact(s)
uses: actions/upload-artifact@v4
with:
name: dist-zips
path: |
dist/**/*.zip
dist/*.zip
if-no-files-found: error
compression-level: 0