diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 0f175b1..e729401 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -13,7 +13,12 @@ jobs: with: node-version: 20 cache: 'npm' - - run: npm ci + # Clean install to fix rollup issue + - name: Clean dependencies + run: | + rm -rf node_modules package-lock.json + - name: Install dependencies + run: npm ci - run: npm run typecheck - run: npm run lint - run: npm run build @@ -33,6 +38,10 @@ jobs: registry-url: https://npm.pkg.github.com cache: 'npm' + - name: Clean dependencies + run: | + rm -rf node_modules package-lock.json + - name: Install dependencies run: npm ci @@ -70,6 +79,10 @@ jobs: registry-url: https://registry.npmjs.org cache: 'npm' + - name: Clean dependencies + run: | + rm -rf node_modules package-lock.json + - name: Install dependencies run: npm ci