{"id":15825068,"url":"https://github.com/karlhorky/vercel-pkg-github-actions-release","last_synced_at":"2026-03-09T08:02:51.607Z","repository":{"id":150431480,"uuid":"461221085","full_name":"karlhorky/vercel-pkg-github-actions-release","owner":"karlhorky","description":"Automatic GitHub Releases of packages built with Vercel pkg using GitHub Actions","archived":false,"fork":false,"pushed_at":"2023-10-29T15:08:38.000Z","size":29,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-02T00:44:41.106Z","etag":null,"topics":["actions","github-actions","github-releases","pkg","vercel"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karlhorky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-02-19T14:48:55.000Z","updated_at":"2023-05-01T20:25:57.000Z","dependencies_parsed_at":"2023-04-07T02:24:07.211Z","dependency_job_id":null,"html_url":"https://github.com/karlhorky/vercel-pkg-github-actions-release","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karlhorky/vercel-pkg-github-actions-release","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlhorky%2Fvercel-pkg-github-actions-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlhorky%2Fvercel-pkg-github-actions-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlhorky%2Fvercel-pkg-github-actions-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlhorky%2Fvercel-pkg-github-actions-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karlhorky","download_url":"https://codeload.github.com/karlhorky/vercel-pkg-github-actions-release/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlhorky%2Fvercel-pkg-github-actions-release/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: 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":["actions","github-actions","github-releases","pkg","vercel"],"created_at":"2024-10-05T09:03:13.054Z","updated_at":"2026-03-09T08:02:51.582Z","avatar_url":"https://github.com/karlhorky.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Creating GitHub Releases of `pkg` Executables using GitHub Actions\n\n## Introduction\n\n[Vercel's `pkg`](https://github.com/vercel/pkg) allows packaging a Node.js project into an executable, which can run on devices which don't have Node.js installed.\n\nGitHub Actions can run code on a schedule, allowing for automatically building your `pkg` and releasing to GitHub Releases.\n\nThis is a guide to show this. I tried contributing this to the official docs, but unfortunately this was declined by Vercel: https://github.com/vercel/pkg/pull/1246\n\n## Guide\n\n[GitHub Actions](https://docs.github.com/en/actions) can be used to automatically run [`pkg`](https://github.com/vercel/pkg) when a specific event has occurred.\n\nFor example, to automatically run `pkg` to create executables and upload them as assets to a new release on GitHub every time a new Git tag is pushed, try setting up [`softprops/action-gh-release`](https://github.com/softprops/action-gh-release) as follows:\n\n1. Add a new file in your project called `.github/workflows/release.yml` (create the directories `.github/workflow` in case they don't exist in your project) and add this file content:\n\n```yaml\nname: Build and release\non:\n  push:\n    tags:\n      - 'v*.*.*'\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n      - name: Use Node.js\n        uses: actions/setup-node@v4\n        with:\n          node-version: 'lts/*'\n      - run: yarn --frozen-lockfile\n      - run: npm install --global pkg\n      - name: Build\n        run: pkg index.js --output your-program-name-here --targets linux,macos,win\n      - name: Release\n        uses: softprops/action-gh-release@v1\n        with:\n          files: |\n            your-program-name-here-linux\n            your-program-name-here-macos\n            your-program-name-here-win.exe\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n2. Create a new Git tag with the version that you want:\n\n```bash\ngit tag -a v1.0.0\n```\n\n3. Push the new tag to GitHub:\n\n```bash\ngit push --tags\n```\n\nThis will create a new release under Releases on your GitHub repo that will contain the built executables as assets:\n\n![Releases page on GitHub repo showing release with assets](https://github.com/karlhorky/vercel-pkg-github-actions-release/raw/main/github-release-v1.png)\n\nEvery time that you want to create a new release with assets, create a new tag and push it (steps 2 and 3 above).\n\nThe final version of the workflow and release:\n\n- Workflow: https://github.com/jonaschlegel/lgo-agisoft-converter/blob/main/.github/workflows/release.yml\n- Release: https://github.com/jonaschlegel/lgo-agisoft-converter/releases/tag/v1.0.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarlhorky%2Fvercel-pkg-github-actions-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarlhorky%2Fvercel-pkg-github-actions-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarlhorky%2Fvercel-pkg-github-actions-release/lists"}