Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: drop -g from npm install in ci config #597

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

Rob--W
Copy link
Member

@Rob--W Rob--W commented Apr 16, 2024

After bumping the version directly on master, CI failed unexpectedly: af051ff

This is likely due to an image bump in 338d75f . Previously npm i -g installed to ~/.npm-global, possibly because the image was built after following the instructions from https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally#manually-change-npms-default-directory . The latest CI image does not have this override though, which causes npm i -g to fail with EACCES: permission denied, mkdir '/usr/local/lib/node_modules/browserify'.

@rpl rpl self-requested a review April 16, 2024 12:59
@rpl rpl merged commit 89a7281 into master Apr 16, 2024
1 check passed
@rpl rpl deleted the Rob--W-patch-circeci-config-npm-g branch April 16, 2024 13:01
Gudahtt added a commit to Gudahtt/webextension-polyfill that referenced this pull request May 14, 2024
Changes made in mozilla#597 accidentally resulted in `webpack` and
`webpack-cli` being added as dependencies in the manifest of the
published package. This problem can be seen in v0.11.0. For more
information, see mozilla#604.

`webpack` and `webpack-cli` are used for bundler smoke tests that are
run in CI. Rather than being installed during CI, these dependencies
are now included in `devDependencies`. A new npm script has been added
for running this script as well, to ensure that these dependencies are
on the PATH when this script is run.

The CircleCI config and the contributor docs have been updated to use
the new npm script. You can test it by running
`npm run test-module-bundlers-smoketest`.

Fixes mozilla#604
Rob--W pushed a commit that referenced this pull request May 14, 2024
Changes made in #597 accidentally resulted in `webpack` and
`webpack-cli` being added as dependencies in the manifest of the
published package. This problem can be seen in v0.11.0. For more
information, see #604.

`webpack` and `webpack-cli` are used for bundler smoke tests that are
run in CI. Rather than being installed during CI, these dependencies
are now included in `devDependencies`. A new npm script has been added
for running this script as well, to ensure that these dependencies are
on the PATH when this script is run.

The CircleCI config and the contributor docs have been updated to use
the new npm script. You can test it by running
`npm run test-module-bundlers-smoketest`.

Fixes #604
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants