Skip to content

Commit

Permalink
Install only Chromium browser in post-install. Ignore post-install wh…
Browse files Browse the repository at this point in the history
…ile publishing the package
  • Loading branch information
vasu31dev committed Oct 17, 2024
1 parent ff7e6af commit 67c93b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org/'
always-auth: true
- run: npm ci
- run: npm publish

- name: Install Libraries (ignore scripts)
run: npm ci --ignore-scripts # This prevents postinstall and other scripts from running
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"lint:fix": "cross-env eslint 'src/**/*.ts' 'tests/**/*.ts' 'test-setup/**/*.ts' 'playwright.config.ts' --fix",
"prepare": "husky",
"format": "cross-env prettier --write 'src/**/*.ts' 'tests/**/*.ts' 'test-setup/**/*.ts' 'playwright.config.ts' '**/*.json' '**/*.md' '!package-lock.json' '!dist/**/*' '!build/**/*'",
"postinstall": "playwright install"
"postinstall": "playwright install chromium"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 67c93b6

Please sign in to comment.