From 876da03746268520f5b5a7e09b02950b3d48c7a3 Mon Sep 17 00:00:00 2001 From: Ali Sait Teke Date: Sat, 23 Nov 2024 04:16:31 +0000 Subject: [PATCH] chore(workflows): add clean install steps to remove node_modules and package-lock.json to fix rollup issues during npm publish process --- .github/workflows/npm-publish-github-packages.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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