Skip to content

Commit

Permalink
Don't do husky setup on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ikoenigsknecht committed Sep 30, 2024
1 parent 580184d commit 6bf8770
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: 'Setup environment'

env:
IS_CI: true

inputs:
bootstrap-packages:
description: 'Lerna bootstrap packages (comma separated without spaces)'
Expand Down
4 changes: 4 additions & 0 deletions scripts/setup_husky.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ const fs = require('fs')
const os = require('os')
const path = require('path')

if (process.env.IS_CI) {
return
}

console.log(`Ensuring husky init file(s) are in place`)

const initShFileName = 'init.sh'
Expand Down

0 comments on commit 6bf8770

Please sign in to comment.