Skip to content

Commit f5f09a3

Browse files
authored
Modify npm ci to use --ignore-scripts option
Updated npm ci command to ignore scripts during installation.
1 parent ce16c9c commit f5f09a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/push_dist_to_npm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
npm version --git-tag-version=false $GHVERSION
2929
# limit distribution to the dist folder (just for this build), and set package name
3030
node -e "const packageJson=require('./package.json'); packageJson.files=['dist/']; packageJson.name='@graphhopper/graphhopper-maps-bundle'; require('fs').writeFileSync('package.json', JSON.stringify(packageJson, null, 4));"
31-
npm ci
31+
npm ci --ignore-scripts
3232
npm run build
3333
# no dependencies or scripts in package.json (they should not be installed when installing the package, because they are all included in the bundle already)
3434
node -e "const packageJson=require('./package.json'); packageJson.scripts={}; packageJson.dependencies={}; packageJson.devDependencies={}; require('fs').writeFileSync('package.json', JSON.stringify(packageJson, null, 4));"
3535
# we need to set the access to public, because organization scoped packages are private by default
36-
npm publish --access public --tag commit
36+
npm publish --access public --tag commit

0 commit comments

Comments
 (0)