1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00
pdf.js/.github
Tim van der Meij 92de2b7b15
Don't install gulp-cli globally in the GitHub Actions workflows
It's recommended to always install dependencies locally in the project
folder because global dependencies can easily conflict with other
projects and, because they are not managed by the project, diverge from
versions defined in e.g. `package.json`. Previously we installed
`gulp-cli` globally because at the time we lacked a convenient mechanism
to use Gulp otherwise, but nowadays NPM provides the `npx` command for
that purpose and recommends using it over global installations (see
https://docs.npmjs.com/downloading-and-installing-packages-globally
and PR #17489 that provided the ground work for using it).

This commit therefore updates our GitHub Actions workflows to no longer
install `gulp-cli` globally but instead install it locally from the
already existing entries in `package.json` like all other dependencies
we use. Not only does this remove the special-casing for `gulp-cli`
which simplifies the workflow definitions, it also ensures that the
version ranges provided in `package.json` are respected. This makes the
local and workflow setups more similar, but is also relevant for the
upcoming upgrade to Gulp 5 which from a quick try is a bit involved and
having `package.json` be the single source of truth for the dependency
versions we use is therefore important.
2024-04-09 14:52:00 +02:00
..
workflows Don't install gulp-cli globally in the GitHub Actions workflows 2024-04-09 14:52:00 +02:00
CODEOWNERS [api-minor] Move to Fluent for the localization (bug 1858715) 2023-10-19 11:20:41 +02:00
CONTRIBUTING.md Update links from IRC to Matrix. 2020-02-27 16:26:17 -08:00
dependabot.yml Stop Dependabot from creating its own, otherwise unused, labels 2022-11-14 15:07:55 +01:00
fluent_linter_config.yml Add workflow to lint Fluent en-US files 2023-10-26 17:27:42 +02:00
ISSUE_TEMPLATE.md Attempt to clarify the meaning of "extension" in the ISSUE_TEMPLATE 2017-10-21 11:32:03 +02:00
requirements.txt Add workflow to lint Fluent en-US files 2023-10-26 17:27:42 +02:00