setup-node
setup-node copied to clipboard
Set up your GitHub Actions workflow with a specific version of node.js
**Description:** The Node.js version is now included in the cache key to ensure caches are invalidated, and dependencies reinstalled, when changing Node.js versions. **Related issue:** Fixes #1171 **Check list:** -...
**Description:** copy toolPath to node-installation-path. The real Node PATH can be either toolPath or node-installation-path. **Related issue:** See #1161 **Check list:** - [ v] Mark if documentation changes are required....
`actions/setup-node` should output cache details such as: - path - key - hits: boolean - size - last_updated ``` steps: - name: install NodeJs id: node uses: actions/setup-node@v3 with: cache:...
* Update README.md * Update README.md **Description:** Describe your changes. **Related issue:** Add link to the related issue. **Check list:** - [ ] Mark if documentation changes are required. -...
**Description:** update the example to not install dependencies twice **Related issue:** based on this guide https://github.com/pnpm/action-setup?tab=readme-ov-file#use-cache-to-reduce-installation-time **Check list:** - [x] Mark if documentation changes are required. - [x] Mark if...
**Description:** The Node.js version should be included in the cache key. The major version number, (e.g., 22 in 22.12) should be used to avoid unnecessary invalidation when upgrading to patch...
**Description:** `@actions/cache` now ships `@actions/cache/save` and `@actions/cache/restore` actions to easily implement different caching strategies. One of the strategies they document is "Make cache read only / Reuse cache from centralized...
**Description:** Describe your changes. **Related issue:** Add link to the related issue. **Check list:** - [x] Mark if documentation changes are required. - [x] Mark if tests were added or...
**Description:** Currently, saving the cache is executed only when the job is successful: https://github.com/actions/setup-node/blob/39370e3970a6d050c480ffad4ff0ed4d3fdee5af/action.yml#L38-L39 In my opinion, the job can fail for many reasons, and saving the package to the...
**Description:** In some build tool config, developer need to set node path, as https://github.com/flathub/electron-sample-app/blob/master/flatpak/org.flathub.electron-sample-app.yml , line 17. **Justification:** need a node installation path option **Are you willing to submit a...