Skip to content

Commit

Permalink
Merge pull request #1525 from aeternity/feature/fix-git-build
Browse files Browse the repository at this point in the history
Revert "chore(npm scripts): don't build on installing dependencies"
  • Loading branch information
davidyuk authored May 23, 2022
2 parents 8d32ad4 + 5805a10 commit 8b0614c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
~/.npm
~/.autorest
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm ci --ignore-scripts
- name: Run Commitlint
env:
EVENT_TYPE: ${{ github.event_name }}
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

def pre_build(**kwargs):
if not os.path.exists('node_modules'):
subprocess.run(['npm', 'install'], check=True)
subprocess.run(['npm', 'install', '--ignore-scripts'], check=True)
subprocess.run(['npm', 'run', 'docs:examples'], check=True)
# subprocess.run(['npm', 'run', 'docs:api'], check=True)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test:integration": "nyc mocha './test/integration/'",
"test:unit": "nyc mocha './test/unit/'",
"test:watch": "mocha './test/unit/' './test/integration/' --watch",
"prepack": "npm run build",
"prepare": "npm run build",
"prepublishOnly": "test/examples.sh && npm run docs:examples",
"release": "standard-version --skip.tag --infile docs/CHANGELOG.md"
},
Expand Down

0 comments on commit 8b0614c

Please sign in to comment.