Skip to content

fix and update remotion version #20

fix and update remotion version

fix and update remotion version #20

name: Build WebContainer Snapshot
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Check if package.json changed
id: pkg_changed
run: |
if git diff --name-only HEAD~1 HEAD | grep -q "^package.json$"; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
- name: Build and upload snapshots
run: node scripts/build-snapshot.mjs
env:
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
SKIP_NODE_MODULES: ${{ steps.pkg_changed.outputs.changed == 'false' && 'true' || 'false' }}