Skip to content

Commit

Permalink
fix: ignore husky in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bompo committed Nov 27, 2024
1 parent f15d129 commit 4dbf150
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -59,8 +61,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm clean-install
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"tsc": "tsc --pretty --noEmit",
"build": "tsup src/index.ts --format esm,cjs --clean --sourcemap --env.NOVA_AUTH0_DEV_CLIENT_ID=$NOVA_AUTH0_DEV_CLIENT_ID --env.NOVA_AUTH0_STG_CLIENT_ID=$NOVA_AUTH0_STG_CLIENT_ID --env.NOVA_AUTH0_PROD_CLIENT_ID=$NOVA_AUTH0_PROD_CLIENT_ID && tsc --declaration --emitDeclarationOnly",
"test": "npm run build && vitest run",
"prepare": "husky"
"prepare": "husky || true"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 4dbf150

Please sign in to comment.