{"id":48719897,"url":"https://github.com/nextcloud-libraries/parse-package-engines-action","last_synced_at":"2026-04-11T19:12:41.559Z","repository":{"id":319859221,"uuid":"1079751840","full_name":"nextcloud-libraries/parse-package-engines-action","owner":"nextcloud-libraries","description":"GitHub action for parsing the engine and package manager from a package.json","archived":false,"fork":false,"pushed_at":"2025-11-06T17:11:51.000Z","size":1244,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-06T19:10:52.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nextcloud-libraries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-20T10:30:48.000Z","updated_at":"2025-11-06T17:10:23.000Z","dependencies_parsed_at":"2025-10-21T17:35:12.651Z","dependency_job_id":null,"html_url":"https://github.com/nextcloud-libraries/parse-package-engines-action","commit_stats":null,"previous_names":["susnux/parse-package-engines","nextcloud-libraries/parse-package-engines-action"],"tags_count":1,"template":false,"template_full_name":"actions/javascript-action","purl":"pkg:github/nextcloud-libraries/parse-package-engines-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fparse-package-engines-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fparse-package-engines-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fparse-package-engines-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fparse-package-engines-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextcloud-libraries","download_url":"https://codeload.github.com/nextcloud-libraries/parse-package-engines-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fparse-package-engines-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31691819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-11T19:12:40.683Z","updated_at":"2026-04-11T19:12:41.541Z","avatar_url":"https://github.com/nextcloud-libraries.png","language":"JavaScript","readme":"# parse-package-engines\n\n\u003c!--\n - SPDX-FileCopyrightText: 2025 Ferdinand Thiessen\n - SPDX-License-Identifier: MIT\n--\u003e\n\n![CI](https://github.com/actions/javascript-action/actions/workflows/ci.yml/badge.svg)\n[![Check dist/](https://github.com/actions/javascript-action/actions/workflows/check-dist.yml/badge.svg)](https://github.com/actions/javascript-action/actions/workflows/check-dist.yml)\n[![CodeQL](https://github.com/actions/javascript-action/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/actions/javascript-action/actions/workflows/codeql-analysis.yml)\n[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)\n\nThis is a GitHub action to parse the node version and the package manager (name and version) from a `package.json`.\nThe idea is that with the `setup-node` action currently `devEngines` is not supported, but it also does not to setup a specific package manager.\n\nSo this action is capable of parsing `engines`, `devEngines` as well as `packageManager` entries from a `package.json`.\n\n## Inputs \u0026 Outputs\n\nInputs:\n* `path`: The path to the `package.json` relative to `working-directory`, defaults to `./package.json`\n* `working-directory`: The current working directory - used for reading the `package.json` and defaults to the `GITHUB_WORKSPACE`.\n\nOutputs:\n* `node-version`: The detected Node.js version\n* `package-manager-name`: The name of the detected package manager, like `npm` or `yarn`\n* `package-manager-version`: The version of the detected package manager, like `^10.5.1`\n\n## Usage\n\nWhen for example building a workflow to compile assets the usage could look like this:\n\n```yaml\nname: Node build\non: pull_request\n\npermissions:\n  contents: read\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    name: NPM build\n    steps:\n      - name: Checkout\n        uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0\n        with:\n          persist-credentials: false\n\n      - name: Read package.json\n        uses: nextcloud-libraries/parse-package-engines-action@main # please pin this version to an actual tag for security\n        id: versions\n\n      - name: Set up node ${{ steps.versions.outputs.node-version }}\n        uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0\n        with:\n          node-version: ${{ steps.versions.outputs.node-version }}\n\n      # Here we know we use npm\n      - name: Set up npm ${{ steps.versions.outputs.package-manager-version }}\n        run: npm i -g 'npm@${{ steps.versions.outputs.package-manager-version }}'\n\n      - name: Install dependencies \u0026 build\n        run: |\n          npm ci\n          npm run build --if-present\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextcloud-libraries%2Fparse-package-engines-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextcloud-libraries%2Fparse-package-engines-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextcloud-libraries%2Fparse-package-engines-action/lists"}