Skip to content

Commit

Permalink
ci(husky): disable husky hooks before npm ci
Browse files Browse the repository at this point in the history
we need to disable the hooks before we install deps otherwise semantic-release fails during release.
We add them back so the change is not committed during release process
  • Loading branch information
Nargonath committed Oct 25, 2023
1 parent 888503d commit 80d4fc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ jobs:
with:
node-version: "lts/*"
cache: "npm"
- name: Remove husky scripts installation
run: npm pkg set scripts.prepareBackup=$(npm pkg get scripts.prepare) && npm pkg delete scripts.prepare
- name: Install dependencies
run: npm ci
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Build
run: npm run build
- name: Add scripts.prepare back
run: npm pkg set scripts.prepare=$(npm pkg get scripts.prepareBackup) && npm pkg delete scripts.prepareBackup
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 80d4fc8

Please sign in to comment.