Skip to content

Commit a24041e

Browse files
committed
fix(ci): clean npm cache before installing FFmpeg packages
Prevents stale cache from causing "Access token expired" warnings.
1 parent 3e4b571 commit a24041e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ jobs:
160160
- name: Install FFmpeg (macOS npm - free)
161161
if: matrix.os == 'darwin' && matrix.variant == 'free'
162162
run: |
163+
npm cache clean --force
163164
PKG="@pproenca/webcodecs-ffmpeg-${{ matrix.ffmpeg_pkg }}"
164165
echo "Installing FFmpeg package: $PKG"
165166
npm install --no-save "$PKG"
@@ -177,6 +178,7 @@ jobs:
177178
- name: Install FFmpeg (Linux npm)
178179
if: matrix.os == 'linux' && matrix.qemu != true
179180
run: |
181+
npm cache clean --force
180182
PKG="@pproenca/webcodecs-ffmpeg-${{ matrix.ffmpeg_pkg }}"
181183
if [ "${{ matrix.variant }}" = "non-free" ]; then
182184
PKG="${PKG}-non-free"
@@ -215,6 +217,7 @@ jobs:
215217
dnf install -y gcc-c++ make python3 git pkgconfig zlib-devel bzip2-devel
216218
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
217219
dnf install -y nodejs
220+
npm cache clean --force
218221
npm install --no-save \"$FFMPEG_PKG\"
219222
npm install
220223
npm run build

0 commit comments

Comments
 (0)