Skip to content

Commit

Permalink
Merge pull request #195 from codfish/force-install
Browse files Browse the repository at this point in the history
Force install additional deps
  • Loading branch information
codfish authored Nov 9, 2023
2 parents 4d97366 + b81ef1d commit 3607258
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.17
FROM node:18.7.0

# nice clean home for our action files
RUN mkdir /action
Expand Down
10 changes: 7 additions & 3 deletions entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ const installPackages = (packages) => {
try {
const packagesArr = arrify(packages);
core.debug(`Installing additional packages: ${packagesArr}`);
const spawn = childProcess.spawnSync('npm', ['install', '--no-save', ...packagesArr], {
stdio: ['inherit', 'inherit', 'pipe'],
});
const spawn = childProcess.spawnSync(
'npm',
['install', '--no-save', '--no-audit', '--no-fund', '--force', ...packagesArr],
{
stdio: ['inherit', 'inherit', 'pipe'],
},
);
if (spawn.status !== 0) {
throw new Error(spawn.stderr);
}
Expand Down

0 comments on commit 3607258

Please sign in to comment.