Skip to content

Commit a8134ee

Browse files
committed
fix(ci): clear stale npm auth tokens before installing public packages
Prevent "Access token expired or revoked" warnings when installing public @pproenca/webcodecs-ffmpeg-* packages from npm registry.
1 parent 3e4b571 commit a8134ee

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ jobs:
160160
- name: Install FFmpeg (macOS npm - free)
161161
if: matrix.os == 'darwin' && matrix.variant == 'free'
162162
run: |
163+
# Clear any stale npm auth to avoid "token expired" warnings on public packages
164+
npm config delete //registry.npmjs.org/:_authToken 2>/dev/null || true
163165
PKG="@pproenca/webcodecs-ffmpeg-${{ matrix.ffmpeg_pkg }}"
164166
echo "Installing FFmpeg package: $PKG"
165167
npm install --no-save "$PKG"
@@ -177,6 +179,8 @@ jobs:
177179
- name: Install FFmpeg (Linux npm)
178180
if: matrix.os == 'linux' && matrix.qemu != true
179181
run: |
182+
# Clear any stale npm auth to avoid "token expired" warnings on public packages
183+
npm config delete //registry.npmjs.org/:_authToken 2>/dev/null || true
180184
PKG="@pproenca/webcodecs-ffmpeg-${{ matrix.ffmpeg_pkg }}"
181185
if [ "${{ matrix.variant }}" = "non-free" ]; then
182186
PKG="${PKG}-non-free"
@@ -215,6 +219,8 @@ jobs:
215219
dnf install -y gcc-c++ make python3 git pkgconfig zlib-devel bzip2-devel
216220
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
217221
dnf install -y nodejs
222+
# Clear any stale npm auth to avoid token warnings on public packages
223+
npm config delete //registry.npmjs.org/:_authToken 2>/dev/null || true
218224
npm install --no-save \"$FFMPEG_PKG\"
219225
npm install
220226
npm run build

0 commit comments

Comments
 (0)