diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d25fea2..6fd8dd4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,8 @@ jobs: build-and-release: runs-on: ubuntu-latest needs: build + env: + HUSKY: 0 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} permissions: contents: write # to be able to publish a GitHub release @@ -64,8 +66,6 @@ jobs: with: name: build-artifacts path: dist/ - - name: Install dependencies - run: npm clean-install - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -75,6 +75,8 @@ jobs: publish-snapshot: runs-on: ubuntu-latest needs: build + env: + HUSKY: 0 if: ${{ github.event_name == 'pull_request' }} permissions: contents: write # to be able to publish a GitHub release @@ -93,8 +95,6 @@ jobs: with: name: build-artifacts path: dist/ - - name: Install dependencies - run: npm clean-install - name: Configure npm authentication run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - name: Fetch latest release version diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 311683d..0c3279f 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -37,6 +37,8 @@ jobs: build: runs-on: ubuntu-latest name: Build + env: + HUSKY: 0 needs: - build_matrix strategy: @@ -65,6 +67,8 @@ jobs: deploy: runs-on: ubuntu-latest name: Deploy + env: + HUSKY: 0 if: always() needs: - build_matrix diff --git a/package.json b/package.json index 83692e1..9ff1b1d 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "ci:test:runner": "wait-on tcp:127.0.0.1:9009 && test-storybook --url http://127.0.0.1:9009 --index-json --browsers chromium", "build": "rimraf dist && vite build && tsc --declaration --emitDeclarationOnly", "build-storybook": "storybook build", - "prepare": "husky" + "prepare": "husky || true" }, "repository": { "type": "git",