brave / brave-core-crx-packager

Mozilla Public License 2.0
41 stars 35 forks source link

chore(deps): update actions/setup-node action to v4.1.0 #1002

Closed renovate[bot] closed 2 weeks ago

renovate[bot] commented 2 weeks ago

This PR contains the following updates:

Package Type Update Change
actions/setup-node action minor v4.0.4 -> v4.1.0

Release Notes

actions/setup-node (actions/setup-node) ### [`v4.1.0`](https://redirect.github.com/actions/setup-node/compare/v4.0.4...v4.1.0) [Compare Source](https://redirect.github.com/actions/setup-node/compare/v4.0.4...v4.1.0)

Configuration

📅 Schedule: Branch creation - " 0-4 * 3" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

â™» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

github-actions[bot] commented 2 weeks ago

[puLL-Merge] - actions/setup-node@v4.0.4..v4.1.0

Description

This PR introduces several changes to improve the caching mechanism and GHES (GitHub Enterprise Server) detection in the setup-node action. The main modifications include updating the cache key generation to include the CPU architecture, refining the GHES detection logic, and updating dependencies.

Changes ### Changes 1. `.github/workflows/publish-immutable-actions.yml`: - Updated the trigger event from `created` to `published` for releases. - Changed the publish action version from `0.0.1` to `0.0.3`. - Removed explicit GitHub token input. 2. `__tests__/cache-restore.test.ts`: - Added `os` module import and mocking of `os.arch()` function. - Updated test cases to include CPU architecture in cache key generation. 3. `__tests__/cache-utils.test.ts`: - Added new test cases for the `isGhes()` function to cover various scenarios. 4. `__tests__/data/pnpm-lock.yaml`: - Updated lockfile version and dependencies. 5. `dist/cache-save/index.js` and `dist/setup/index.js`: - Updated the `isGhes()` function implementation to handle more edge cases. - Modified cache key generation to include CPU architecture. 6. `src/cache-restore.ts`: - Added CPU architecture to the cache key generation. 7. `src/cache-utils.ts`: - Refined the `isGhes()` function to better detect GitHub Enterprise Server instances.

Possible Issues

Security Hotspots

No significant security issues were identified in this PR.